diff --git a/include/crits.hpp b/include/crits.hpp index 6daf3508..711464f7 100644 --- a/include/crits.hpp +++ b/include/crits.hpp @@ -1,6 +1,7 @@ #pragma once #include "settings/Bool.hpp" #include "usercmd.hpp" +#include namespace criticals { extern settings::Boolean enabled; diff --git a/src/hack.cpp b/src/hack.cpp index b455f3d6..8c9daead 100644 --- a/src/hack.cpp +++ b/src/hack.cpp @@ -197,10 +197,10 @@ void hack::Hook() hooks::panel.Apply(); #endif -#if ENABLE_VISUALS hooks::vstd.Set((void *) g_pUniformStream); hooks::vstd.HookMethod(HOOK_ARGS(RandomInt)); hooks::vstd.Apply(); +#if ENABLE_VISUALS auto chat_hud = g_CHUD->FindElement("CHudChat"); while (!(chat_hud = g_CHUD->FindElement("CHudChat")))