summaryrefslogtreecommitdiff
path: root/src/net/ea/gamehandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/ea/gamehandler.cpp')
-rw-r--r--src/net/ea/gamehandler.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/net/ea/gamehandler.cpp b/src/net/ea/gamehandler.cpp
index cce62c1af..e8e114c30 100644
--- a/src/net/ea/gamehandler.cpp
+++ b/src/net/ea/gamehandler.cpp
@@ -60,18 +60,19 @@ void GameHandler::setMap(const std::string &map)
void GameHandler::processWhoAnswer(Net::MessageIn &msg) const
{
- NotifyManager::notify(NotifyTypes::ONLINE_USERS, msg.readInt32());
+ NotifyManager::notify(NotifyTypes::ONLINE_USERS,
+ msg.readInt32("users count"));
}
void GameHandler::processCharSwitchResponse(Net::MessageIn &msg) const
{
- if (msg.readUInt8())
+ if (msg.readUInt8("response"))
client->setState(STATE_SWITCH_CHARACTER);
}
void GameHandler::processMapQuitResponse(Net::MessageIn &msg) const
{
- if (msg.readUInt8())
+ if (msg.readUInt8("response"))
{
new OkDialog(_("Game"),
// TRANSLATORS: error message