(svn r22086) -Fix: do not check if we can allocate an item if we won't try to do so anyway

pull/155/head
smatz 14 years ago
parent e9d0998b85
commit 03c1b0df4b

@ -275,7 +275,7 @@ NetworkRecvStatus ServerNetworkGameSocketHandler::CloseConnection(NetworkRecvSta
/* We can't go over the MAX_CLIENTS limit here. However, the
* pool must have place for all clients and ourself. */
assert_compile(NetworkClientSocketPool::MAX_SIZE == MAX_CLIENTS + 1);
assert(ServerNetworkGameSocketHandler::CanAllocateItem());
assert(!accept || ServerNetworkGameSocketHandler::CanAllocateItem());
return accept;
}

Loading…
Cancel
Save