mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Fix broken popping of top interfaces when town was opened during multiplayer game
This commit is contained in:
@@ -341,6 +341,6 @@ WindowBase::WindowBase(int used_, Point pos_)
|
||||
void WindowBase::close()
|
||||
{
|
||||
if(!GH.windows().isTopWindow(this))
|
||||
logGlobal->error("Only top interface must be closed");
|
||||
throw std::runtime_error("Only top interface can be closed");
|
||||
GH.windows().popWindows(1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user