summaryrefslogtreecommitdiff
path: root/src/net/ea/charserverrecv.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/ea/charserverrecv.cpp')
-rw-r--r--src/net/ea/charserverrecv.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/ea/charserverrecv.cpp b/src/net/ea/charserverrecv.cpp
index 5f91f23a7..0d4ed157a 100644
--- a/src/net/ea/charserverrecv.cpp
+++ b/src/net/ea/charserverrecv.cpp
@@ -119,9 +119,9 @@ void CharServerRecv::processCharCreateFailed(Net::MessageIn &msg)
void CharServerRecv::processCharDelete(Net::MessageIn &msg A_UNUSED)
{
BLOCK_START("CharServerRecv::processCharDelete")
- delete Net::CharServerHandler::mSelectedCharacter;
Net::CharServerHandler::mCharacters.remove(
Net::CharServerHandler::mSelectedCharacter);
+ delete Net::CharServerHandler::mSelectedCharacter;
Net::CharServerHandler::mSelectedCharacter = nullptr;
Net::CharServerHandler::updateCharSelectDialog();
Net::CharServerHandler::unlockCharSelectDialog();