1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 21:23:52 +00:00

Allow replacing of interactive message boxes (Fixes #3040)

This commit is contained in:
scrawl 2015-11-28 19:14:47 +01:00
parent c9bfe01120
commit db71634a2d

View file

@ -117,8 +117,11 @@ namespace MWGui
bool MessageBoxManager::createInteractiveMessageBox (const std::string& message, const std::vector<std::string>& buttons) bool MessageBoxManager::createInteractiveMessageBox (const std::string& message, const std::vector<std::string>& buttons)
{ {
if(mInterMessageBoxe != NULL) { if (mInterMessageBoxe != NULL)
throw std::runtime_error("There is a message box already"); {
std::cerr << "Warning: replacing an interactive message box that was not answered yet" << std::endl;
delete mInterMessageBoxe;
mInterMessageBoxe = NULL;
} }
mInterMessageBoxe = new InteractiveMessageBox(*this, message, buttons); mInterMessageBoxe = new InteractiveMessageBox(*this, message, buttons);