1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-01 00:15:32 +00:00

fix message boxes not appearing properly when e.g. trading

This commit is contained in:
scrawl 2013-01-01 22:00:14 +01:00
parent 4a8bf40a83
commit 86f30992d7

View file

@ -539,9 +539,8 @@ void WindowManager::messageBox (const std::string& message, const std::vector<st
{
if(buttons.empty()){
/* If there are no buttons, and there is a dialogue window open, messagebox goes to the dialogue window */
if(std::find(mGuiModes.begin(), mGuiModes.end(), GM_Dialogue) != mGuiModes.end())
if(!mGuiModes.empty() && mGuiModes.back() == GM_Dialogue)
mDialogueWindow->addMessageBox(MyGUI::LanguageManager::getInstance().replaceTags(message));
else
mMessageBoxManager->createMessageBox(message);
}