summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
Diffstat (limited to 'src/net')
-rw-r--r--src/net/eathena/charserverhandler.cpp3
-rw-r--r--src/net/tmwa/charserverhandler.cpp3
2 files changed, 2 insertions, 4 deletions
diff --git a/src/net/eathena/charserverhandler.cpp b/src/net/eathena/charserverhandler.cpp
index 2bb7e8890..474874483 100644
--- a/src/net/eathena/charserverhandler.cpp
+++ b/src/net/eathena/charserverhandler.cpp
@@ -127,8 +127,7 @@ void CharServerHandler::handleMessage(Net::MessageIn &msg)
mSelectedCharacter->dummy = nullptr;
- delete_all(mCharacters);
- mCharacters.clear();
+ Net::getCharHandler()->clear();
updateCharSelectDialog();
if (mNetwork)
diff --git a/src/net/tmwa/charserverhandler.cpp b/src/net/tmwa/charserverhandler.cpp
index 7f84faaca..d922f0852 100644
--- a/src/net/tmwa/charserverhandler.cpp
+++ b/src/net/tmwa/charserverhandler.cpp
@@ -128,8 +128,7 @@ void CharServerHandler::handleMessage(Net::MessageIn &msg)
mSelectedCharacter->dummy = nullptr;
- delete_all(mCharacters);
- mCharacters.clear();
+ Net::getCharHandler()->clear();
updateCharSelectDialog();
if (mNetwork)