Make ExecutingAttack be a pointer, as we probably want to keep it around after it has finished executing.
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2019-11-09 13:18:45 +01:00
parent 96d1b6251f
commit f72fd5f905
4 changed files with 25 additions and 22 deletions

View File

@@ -1,7 +1,7 @@
#define HOOK(hookName, sources, ... ) \
{ \
auto aggregator = CreatureLib::Battling::ScriptAggregator(); \
for (auto source: sources){ \
for (auto& source: sources){ \
source -> GetActiveScripts(aggregator); \
} \
while (aggregator.HasNext()){ \