From d92d376148f7ed35df1c757aab5eca5645bb8ddd Mon Sep 17 00:00:00 2001 From: est31 Date: Sun, 5 Jul 2015 21:05:07 +0200 Subject: Client: better m_proto_ver initialisation Previously, m_proto_ver was set to the serialisation version inside the legacy init packet. Now, if the server doesn't send a protocol version (protocols < 25), we set m_proto_ver to some value < 25 and > 0. --- src/client.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/client.cpp') diff --git a/src/client.cpp b/src/client.cpp index b02e6229c..2f8babfa2 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -229,6 +229,7 @@ Client::Client( m_con(PROTOCOL_ID, 512, CONNECTION_TIMEOUT, ipv6, this), m_device(device), m_server_ser_ver(SER_FMT_VER_INVALID), + m_proto_ver(0), m_playeritem(0), m_inventory_updated(false), m_inventory_from_server(NULL), -- cgit v1.2.3