mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
Do not attempt to answer non-existing query
This commit is contained in:
@@ -1676,7 +1676,8 @@ void CPlayerInterface::showTavernWindow(const CGObjectInstance * object, const C
|
|||||||
{
|
{
|
||||||
EVENT_HANDLER_CALLED_BY_CLIENT;
|
EVENT_HANDLER_CALLED_BY_CLIENT;
|
||||||
auto onWindowClosed = [this, queryID](){
|
auto onWindowClosed = [this, queryID](){
|
||||||
cb->selectionMade(0, queryID);
|
if (queryID != QueryID::NONE)
|
||||||
|
cb->selectionMade(0, queryID);
|
||||||
};
|
};
|
||||||
GH.windows().createAndPushWindow<CTavernWindow>(object, onWindowClosed);
|
GH.windows().createAndPushWindow<CTavernWindow>(object, onWindowClosed);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user