summaryrefslogtreecommitdiff
path: root/src/net/tmwa/charserverhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/tmwa/charserverhandler.cpp')
-rw-r--r--src/net/tmwa/charserverhandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/tmwa/charserverhandler.cpp b/src/net/tmwa/charserverhandler.cpp
index e6dc84a2..dcc68fb3 100644
--- a/src/net/tmwa/charserverhandler.cpp
+++ b/src/net/tmwa/charserverhandler.cpp
@@ -159,10 +159,10 @@ void CharServerHandler::handleMessage(Net::MessageIn &msg)
mapServer.hostname = ipToString(msg.readInt32());
mapServer.port = msg.readInt16();
- // Prevent the selected local player from being deleted
player_node = mSelectedCharacter->dummy;
PlayerInfo::setBackend(mSelectedCharacter->data);
+ // Prevent the selected local player from being deleted
mSelectedCharacter->dummy = 0;
delete_all(mCharacters);