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:
@@ -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);
|
||||
|
@@ -53,7 +53,7 @@ struct DLL_LINKAGE BattleClientInterfaceData
|
||||
};
|
||||
|
||||
struct ForcedAction {
|
||||
EActionType type;
|
||||
EActionType type = EActionType::NO_ACTION;
|
||||
BattleHex position;
|
||||
const battle::Unit * target;
|
||||
};
|
||||
|
Reference in New Issue
Block a user