mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-15 01:24:45 +02:00
Changes following review:
- shared_ptr for destructibleEnemyTurns instead of raw pointer - drop implicit int conversion for BattleHex class and implement toInt() instead - implement necessary operators in BattleHex - adjust code to work properly with JSON serializer
This commit is contained in:
@ -839,7 +839,7 @@ void BattleFieldController::updateAccessibleHexes()
|
||||
|
||||
bool BattleFieldController::stackCountOutsideHex(const BattleHex & number) const
|
||||
{
|
||||
return stackCountOutsideHexes[number];
|
||||
return stackCountOutsideHexes[number.toInt()];
|
||||
}
|
||||
|
||||
void BattleFieldController::showAll(Canvas & to)
|
||||
|
Reference in New Issue
Block a user