diff --git a/src/network/protocols/game_events_protocol.cpp b/src/network/protocols/game_events_protocol.cpp index 9b0a619ed..0bcf6a8d9 100644 --- a/src/network/protocols/game_events_protocol.cpp +++ b/src/network/protocols/game_events_protocol.cpp @@ -46,7 +46,7 @@ bool GameEventsProtocol::notifyEvent(Event* event) Log::warn("GameEventsProtocol", "Too short message."); return true; } - if ( event->getPeer()->getClientServerToken() != data.getUInt32()) + if ( event->getPeer()->getClientServerToken() != data.getToken()) { Log::warn("GameEventsProtocol", "Bad token."); return true;