Cleanup of script hooks to reduce clang warnings.

This commit is contained in:
Deukhoofd 2021-11-21 13:29:29 +01:00
parent f1d706b356
commit 70ac3813cf
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@
{ \
try { \
auto aggregator = (source)->GetScriptIterator(); \
ArbUt::BorrowedPtr<CreatureLib::Battling::BattleScript> next = (CreatureLib::Battling::BattleScript*)1; \
ArbUt::BorrowedPtr<CreatureLib::Battling::BattleScript> next; \
while (aggregator.GetNext(next)) { \
if (next->IsSuppressed()) { \
continue; \
@ -25,11 +25,11 @@
try { \
if (scriptWrapper.HasValue()) { \
if (scriptWrapper.IsSet()) { \
for (const auto& sv : scriptWrapper.GetScriptSet()->GetIterator()) { \
if (sv->IsSuppressed()) { \
for (const auto& scriptIterator : scriptWrapper.GetScriptSet()->GetIterator()) { \
if (scriptIterator->IsSuppressed()) { \
continue; \
} \
sv->hookName(__VA_ARGS__); \
scriptIterator->hookName(__VA_ARGS__); \
} \
} else { \
if (scriptWrapper.GetScript()->get()->IsSuppressed()) { \