mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-19 12:39:11 +00:00
Previously it did not allow writing a byte to a packet that was of size limit - 1 anymore.
This commit is contained in:
@@ -98,7 +98,7 @@ void Packet::PrepareToSend()
|
||||
*/
|
||||
bool Packet::CanWriteToPacket(size_t bytes_to_write)
|
||||
{
|
||||
return this->Size() + bytes_to_write < this->limit;
|
||||
return this->Size() + bytes_to_write <= this->limit;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user