diff --git a/src/managers/HookSystemManager.cpp b/src/managers/HookSystemManager.cpp index a1920863..208c79ae 100644 --- a/src/managers/HookSystemManager.cpp +++ b/src/managers/HookSystemManager.cpp @@ -28,7 +28,7 @@ void CHookSystemManager::emit(std::vector* const callbacks, SCal return; std::vector faultyHandles; - bool needsDeadCleanup = false; + volatile bool needsDeadCleanup = false; for (auto& cb : *callbacks) { @@ -80,4 +80,4 @@ std::vector* CHookSystemManager::getVecForEvent(const std::strin Debug::log(LOG, "[hookSystem] New hook event registered: {}", event); return &m_mRegisteredHooks[event]; -} \ No newline at end of file +}