summaryrefslogtreecommitdiff
path: root/src/net/tmwa/gamerecv.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/tmwa/gamerecv.cpp')
-rw-r--r--src/net/tmwa/gamerecv.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/tmwa/gamerecv.cpp b/src/net/tmwa/gamerecv.cpp
index e71bdc3b7..ab13076fb 100644
--- a/src/net/tmwa/gamerecv.cpp
+++ b/src/net/tmwa/gamerecv.cpp
@@ -51,12 +51,12 @@ void GameRecv::processMapLogin(Net::MessageIn &msg)
mLastHost &= 0xffffff;
Network *const network = Network::mInstance;
- if (network)
+ if (network != nullptr)
network->pauseDispatch();
// Switch now or we'll have problems
client->setState(State::GAME);
- if (localPlayer)
+ if (localPlayer != nullptr)
localPlayer->setTileCoords(x, y);
}