mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Network: Fix serialization version checks (#15477)
This fixes some incorrect assumptions that the read and write version ranges are identical - whereas they're in fact not.
This commit is contained in:
parent
6c324cb871
commit
c175046d30
11 changed files with 46 additions and 49 deletions
|
@ -1128,7 +1128,7 @@ void Client::sendInit(const std::string &playerName)
|
|||
{
|
||||
NetworkPacket pkt(TOSERVER_INIT, 1 + 2 + 2 + (1 + playerName.size()));
|
||||
|
||||
pkt << (u8) SER_FMT_VER_HIGHEST_READ << (u16) 0;
|
||||
pkt << SER_FMT_VER_HIGHEST_READ << (u16) 0 /* unused */;
|
||||
pkt << CLIENT_PROTOCOL_VERSION_MIN << LATEST_PROTOCOL_VERSION;
|
||||
pkt << playerName;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue