This commit is contained in:
Koncord 2016-11-04 00:57:51 +08:00
parent 6f6993255a
commit 3759127627

View file

@ -85,12 +85,8 @@ void mwmp::GUIController::setChatVisible(bool chatVisible)
void mwmp::GUIController::ShowDialogList(const mwmp::BasePlayer::GUIMessageBox &guiMessageBox) void mwmp::GUIController::ShowDialogList(const mwmp::BasePlayer::GUIMessageBox &guiMessageBox)
{ {
MWBase::WindowManager *windowManager = MWBase::Environment::get().getWindowManager(); MWBase::WindowManager *windowManager = MWBase::Environment::get().getWindowManager();
windowManager->removeDialog(mInputBox); windowManager->removeDialog(mListBox);
if(mListBox) mListBox = NULL;
{
delete mListBox;
mListBox = NULL;
}
std::vector<std::string> list; std::vector<std::string> list;