fix(Core/Scripts): Fix one more typo after scripts refactoring (#18730)

fix(Core/Scripts): Fix one more typo after scripts refactoring.
This commit is contained in:
Anton Popovichenko
2024-04-12 21:58:07 +02:00
committed by GitHub
parent ec10eb841c
commit 11ac6c70db

View File

@@ -82,7 +82,7 @@ inline bool ReturnValidBool(Optional<bool> ret, bool need = false)
#define CALL_ENABLED_BOOLEAN_HOOKS_WITH_DEFAULT_FALSE(scriptType, hookType, action) \
if (ScriptRegistry<scriptType>::EnabledHooks[hookType].empty()) \
return false; \
for (auto const& script : ScriptRegistry<scriptType>::EnabledHooks[hookType]) { if (action) return false; } \
for (auto const& script : ScriptRegistry<scriptType>::EnabledHooks[hookType]) { if (action) return true; } \
return false;
#endif // _SCRIPT_MGR_MACRO_H_