diff --git a/include/hooks/others.hpp b/include/hooks/others.hpp index 67f2a892..aa361fb9 100755 --- a/include/hooks/others.hpp +++ b/include/hooks/others.hpp @@ -15,7 +15,9 @@ class SDL_Window; class CatVar; extern CatVar disconnect_reason; +#if ENABLE_VISUALS == 1 extern int spectator_target; +#endif bool CanPacket_hook(void *); int IN_KeyEvent_hook(void *, int, int, const char *);