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)
{
MWBase::WindowManager *windowManager = MWBase::Environment::get().getWindowManager();
windowManager->removeDialog(mInputBox);
if(mListBox)
{
delete mListBox;
mListBox = NULL;
}
windowManager->removeDialog(mListBox);
mListBox = NULL;
std::vector<std::string> list;