From 972bbd781838c9150f87aad7c96c6bbd74a68e06 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 22 Feb 2013 00:38:26 +0300 Subject: Fix change password issue with empty players list. --- src/net/tmwa/charserverhandler.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/net/tmwa/charserverhandler.cpp') 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) -- cgit v1.2.3-70-g09d2