1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Fixes build warning in Potential Targets

This commit is contained in:
Opuszek
2025-08-24 14:42:42 +02:00
parent 72bc79adaa
commit 10a4a3adee
2 changed files with 2 additions and 2 deletions

View File

@@ -23,7 +23,7 @@ PotentialTargets::PotentialTargets(
//FIXME: this should part of battleGetAvailableHexes
bool isBerserk = attackerInfo->hasBonusOfType(BonusType::ATTACKS_NEAREST_CREATURE);
ForcedAction forcedAction;
ForcedAction forcedAction = {};
if(isBerserk)
forcedAction = state->getBerserkForcedAction(attackerInfo);