diff options
Diffstat (limited to 'src/net/tmwa/charserverhandler.cpp')
-rw-r--r-- | src/net/tmwa/charserverhandler.cpp | 2 |
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); |