Pass ExecutingAttack for target as pointer instead of reference.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -69,7 +69,7 @@ namespace CreatureLib::Battling {
|
||||
|
||||
virtual ~ExecutingAttack() { delete _script; };
|
||||
|
||||
TargetData& GetAttackDataForTarget(Creature* creature) { return _targets[creature]; }
|
||||
TargetData* GetAttackDataForTarget(Creature* creature) { return &_targets[creature]; }
|
||||
|
||||
bool IsCreatureTarget(Creature* creature) { return _targets.find(creature) != _targets.end(); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user