Browse Source

Update lib/spells/BattleSpellMechanics.cpp

Co-authored-by: Ivan Savenko <[email protected]>
Opuszek 5 months ago
parent
commit
1393ac0420
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/spells/BattleSpellMechanics.cpp

+ 1 - 1
lib/spells/BattleSpellMechanics.cpp

@@ -463,7 +463,7 @@ void BattleSpellMechanics::reflect(BattleSpellCast & sc, vstd::RNG & rng, const
 	beforeCast(sc, rng, { reflectedTo });
 }
 
-const battle::Unit * BattleSpellMechanics::getRandomUnit(vstd::RNG & rng, BattleSide & side)
+const battle::Unit * BattleSpellMechanics::getRandomUnit(vstd::RNG & rng, const BattleSide & side)
 {
 	auto targets = battle()->getBattle()->getUnitsIf([&side](const battle::Unit * unit)
 	{