mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-07-18 01:45:16 +01: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:
parent
d2d6b263b3
commit
a5b9858a36
@ -275,7 +275,7 @@ NetworkRecvStatus ServerNetworkGameSocketHandler::CloseConnection(NetworkRecvSta
|
|||||||
/* We can't go over the MAX_CLIENTS limit here. However, the
|
/* We can't go over the MAX_CLIENTS limit here. However, the
|
||||||
* pool must have place for all clients and ourself. */
|
* pool must have place for all clients and ourself. */
|
||||||
assert_compile(NetworkClientSocketPool::MAX_SIZE == MAX_CLIENTS + 1);
|
assert_compile(NetworkClientSocketPool::MAX_SIZE == MAX_CLIENTS + 1);
|
||||||
assert(ServerNetworkGameSocketHandler::CanAllocateItem());
|
assert(!accept || ServerNetworkGameSocketHandler::CanAllocateItem());
|
||||||
return accept;
|
return accept;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user