diff options
author | Stefan Dombrowski <stefan@uni-bonn.de> | 2010-09-29 21:07:20 +0200 |
---|---|---|
committer | Stefan Dombrowski <stefan@uni-bonn.de> | 2010-09-29 21:07:20 +0200 |
commit | 0385c87b9ba9ae212004c7f46132ec4cc895dc05 (patch) | |
tree | 2297964ad5d99daaadb99a4138da247e3ab3cc07 /src/net/tmwa/playerhandler.cpp | |
parent | e750667bd241fa4df353af591adec52427419361 (diff) | |
download | mana-0385c87b9ba9ae212004c7f46132ec4cc895dc05.tar.gz mana-0385c87b9ba9ae212004c7f46132ec4cc895dc05.tar.bz2 mana-0385c87b9ba9ae212004c7f46132ec4cc895dc05.tar.xz mana-0385c87b9ba9ae212004c7f46132ec4cc895dc05.zip |
Fixing segfault when switching server
Reviewed-by: Thorbjorn
Diffstat (limited to 'src/net/tmwa/playerhandler.cpp')
-rw-r--r-- | src/net/tmwa/playerhandler.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/net/tmwa/playerhandler.cpp b/src/net/tmwa/playerhandler.cpp index 16f1ee53..48e7f4b3 100644 --- a/src/net/tmwa/playerhandler.cpp +++ b/src/net/tmwa/playerhandler.cpp @@ -168,6 +168,9 @@ PlayerHandler::PlayerHandler() void PlayerHandler::handleMessage(Net::MessageIn &msg) { + if (!player_node) + return; + switch (msg.getId()) { case SMSG_WALK_RESPONSE: |