From 78abed8e5345aa0043c1866eea515b7f42f352d5 Mon Sep 17 00:00:00 2001 From: BenCat07 Date: Sun, 8 Apr 2018 19:40:25 +0200 Subject: [PATCH] nightmode fix --- src/hooks/others.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hooks/others.cpp b/src/hooks/others.cpp index 645d4a53..23689022 100644 --- a/src/hooks/others.cpp +++ b/src/hooks/others.cpp @@ -593,8 +593,8 @@ void FrameStageNotify_hook(void *_this, int stage) { if (nightmode) { - static bool OldNightmode; - if (OldNightmode != (int) nightmode) + static int OldNightmode = 0; + if (OldNightmode != (int)nightmode) { static ConVar *r_DrawSpecificStaticProp =