Pass ExecutingAttack for target as pointer instead of reference.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-02-16 12:02:17 +01:00
parent 252be18630
commit 579ee82f02
2 changed files with 4 additions and 4 deletions

View File

@@ -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(); }