mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-21 21:49:10 +00:00
(svn r22086) -Fix: do not check if we can allocate an item if we won't try to do so anyway
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user