1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-09-16 09:26:28 +02:00

Merge pull request #6057 from Opuszek/fixes_build_warning_in_potential_targets

Fixes build warning in Potential Targets
This commit is contained in:
Ivan Savenko
2025-08-29 21:49:53 +03:00
committed by GitHub
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);

View File

@@ -53,7 +53,7 @@ struct DLL_LINKAGE BattleClientInterfaceData
};
struct ForcedAction {
EActionType type;
EActionType type = EActionType::NO_ACTION;
BattleHex position;
const battle::Unit * target;
};