diff --git a/lib/battle/CBattleInfoCallback.cpp b/lib/battle/CBattleInfoCallback.cpp index e07ac62b3..4679afca5 100644 --- a/lib/battle/CBattleInfoCallback.cpp +++ b/lib/battle/CBattleInfoCallback.cpp @@ -858,6 +858,7 @@ AccessibilityInfo CBattleInfoCallback::getAccesibility() const //special battlefields with logically unavailable tiles std::vector impassableHexes; if(battleGetBattlefieldType().num == BFieldType::SHIP_TO_SHIP) + { impassableHexes = { 6, 7, 8, 9, @@ -870,6 +871,7 @@ AccessibilityInfo CBattleInfoCallback::getAccesibility() const 159, 160, 161, 162, 163, 176, 177, 178, 179, 180 }; + } for(auto hex : impassableHexes) ret[hex] = EAccessibility::UNAVAILABLE;