diff options
Diffstat (limited to 'src/net/tmwa/loginhandler.cpp')
-rw-r--r-- | src/net/tmwa/loginhandler.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/net/tmwa/loginhandler.cpp b/src/net/tmwa/loginhandler.cpp index 75b5dba65..b0e381407 100644 --- a/src/net/tmwa/loginhandler.cpp +++ b/src/net/tmwa/loginhandler.cpp @@ -189,15 +189,15 @@ void LoginHandler::requestUpdateHosts() void LoginHandler::processServerVersion(Net::MessageIn &msg) { - const uint8_t b1 = msg.readUInt8(); // -1 - const uint8_t b2 = msg.readUInt8(); // E - const uint8_t b3 = msg.readUInt8(); // V - const uint8_t b4 = msg.readUInt8(); // L + const uint8_t b1 = msg.readUInt8("b1"); // -1 + const uint8_t b2 = msg.readUInt8("b2"); // E + const uint8_t b3 = msg.readUInt8("b3"); // V + const uint8_t b4 = msg.readUInt8("b4"); // L if (b1 == 255 && b2 == 'E' && b3 == 'V' && b4 == 'L') { const unsigned int options = msg.readUInt8("options"); mRegistrationEnabled = options & FLAG_REGISTRATION; - msg.skip(2, "unused"); + msg.readInt16("unused"); serverVersion = msg.readUInt8("server version"); tmwServerVersion = 0; if (serverVersion >= 5) |