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:
@ -577,7 +577,7 @@ BattleHex CUnitState::getPosition() const
|
||||
return position;
|
||||
}
|
||||
|
||||
void CUnitState::setPosition(BattleHex hex)
|
||||
void CUnitState::setPosition(const BattleHex & hex)
|
||||
{
|
||||
position = hex;
|
||||
}
|
||||
|
Reference in New Issue
Block a user