Make Clone functions const.
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
This commit is contained in:
@@ -123,7 +123,7 @@ bool BattleSide::SwapPositions(u8 a, u8 b) {
|
||||
_battle->TriggerEventListener<SwapEvent>(_index, a, b);
|
||||
return true;
|
||||
}
|
||||
BattleSide* BattleSide::CloneWithoutCreatures() {
|
||||
BattleSide* BattleSide::CloneWithoutCreatures() const {
|
||||
auto* side = new BattleSide(_index, _battle, _creaturesPerSide);
|
||||
side->_choicesSet = _choicesSet;
|
||||
_volatile.Clone(side->_volatile);
|
||||
|
||||
Reference in New Issue
Block a user