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:
@@ -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);
|
||||||
|
|||||||
@@ -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;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user