1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +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 //FIXME: this should part of battleGetAvailableHexes
bool isBerserk = attackerInfo->hasBonusOfType(BonusType::ATTACKS_NEAREST_CREATURE); bool isBerserk = attackerInfo->hasBonusOfType(BonusType::ATTACKS_NEAREST_CREATURE);
ForcedAction forcedAction; ForcedAction forcedAction = {};
if(isBerserk) if(isBerserk)
forcedAction = state->getBerserkForcedAction(attackerInfo); forcedAction = state->getBerserkForcedAction(attackerInfo);

View File

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