1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-10 22:31:40 +02:00

fix popup

This commit is contained in:
Laserlicht
2024-11-21 20:10:32 +01:00
parent 03273ed324
commit b89db3f044

View File

@@ -370,6 +370,9 @@ void CGarrisonSlot::gesture(bool on, const Point & initialPosition, const Point
if (!settings["input"]["radialWheelGarrisonSwipe"].Bool()) if (!settings["input"]["radialWheelGarrisonSwipe"].Bool())
return; return;
if(GH.windows().topWindow<CIntObject>()->isPopupWindow())
return;
const auto * otherArmy = upg == EGarrisonType::UPPER ? owner->lowerArmy() : owner->upperArmy(); const auto * otherArmy = upg == EGarrisonType::UPPER ? owner->lowerArmy() : owner->upperArmy();
bool stackExists = myStack != nullptr; bool stackExists = myStack != nullptr;