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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user