1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-27 22:49:25 +02:00

use class scope static instead of function scope

This commit is contained in:
MichalZr6
2024-12-06 19:59:05 +01:00
parent 7a8edff419
commit 794595184e
3 changed files with 53 additions and 71 deletions

View File

@@ -65,7 +65,7 @@ const BattleHexArray & Unit::getSurroundingHexes(BattleHex position, bool twoHex
if(!twoHex)
return BattleHexArray::neighbouringTilesCache[position];
return BattleHexArray::getNeighbouringTilesDblWide(position, side);
return BattleHexArray::neighbouringTilesDblWide.at(side).at(position);
}
BattleHexArray Unit::getAttackableHexes(const Unit * attacker) const