1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-05 00:49:09 +02:00

Merge pull request #5266 from MichalZr6/battlefield

Minor fixes to BattleHexArray. BattleHex'es as const reference where possible.
This commit is contained in:
Ivan Savenko
2025-01-25 17:44:14 +02:00
committed by GitHub
63 changed files with 347 additions and 359 deletions

View File

@ -577,7 +577,7 @@ BattleHex CUnitState::getPosition() const
return position;
}
void CUnitState::setPosition(BattleHex hex)
void CUnitState::setPosition(const BattleHex & hex)
{
position = hex;
}