diff --git a/soh/soh/Enhancements/game-interactor/GameInteractor.cpp b/soh/soh/Enhancements/game-interactor/GameInteractor.cpp index d38df692a2..a06f074b94 100644 --- a/soh/soh/Enhancements/game-interactor/GameInteractor.cpp +++ b/soh/soh/Enhancements/game-interactor/GameInteractor.cpp @@ -18,6 +18,14 @@ extern "C" { extern PlayState* gPlayState; } +void GameInteractor::RemoveAllQueuedHooks() { +#define DEFINE_HOOK(name, _) ProcessUnregisteredHooks(); + +#include "GameInteractor_HookTable.h" + +#undef DEFINE_HOOK +} + // MARK: - Effects GameInteractionEffectQueryResult GameInteractor::CanApplyEffect(GameInteractionEffectBase& effect) { diff --git a/soh/soh/Enhancements/game-interactor/GameInteractor.h b/soh/soh/Enhancements/game-interactor/GameInteractor.h index 43c2d2a39b..efafd587b8 100644 --- a/soh/soh/Enhancements/game-interactor/GameInteractor.h +++ b/soh/soh/Enhancements/game-interactor/GameInteractor.h @@ -492,13 +492,7 @@ class GameInteractor { HooksToUnregister::hooksForFilter.clear(); } - void RemoveAllQueuedHooks() { -#define DEFINE_HOOK(name, _) ProcessUnregisteredHooks(); - -#include "GameInteractor_HookTable.h" - -#undef DEFINE_HOOK - } + void RemoveAllQueuedHooks(); class HookFilter { public: