mirror of https://github.com/OpenTTD/OpenTTD
(svn r22086) -Fix: do not check if we can allocate an item if we won't try to do so anyway
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