From d396d84964556ad8c0aa8ca0f0c796265aa501f5 Mon Sep 17 00:00:00 2001 From: nullifiedcat Date: Sat, 18 Mar 2017 10:31:54 +0300 Subject: [PATCH] fix 1 crash --- src/hooks/CreateMove.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/CreateMove.cpp b/src/hooks/CreateMove.cpp index a42bb74f..b21473e6 100644 --- a/src/hooks/CreateMove.cpp +++ b/src/hooks/CreateMove.cpp @@ -75,7 +75,7 @@ bool CreateMove_hook(void* thisptr, float inputSample, CUserCmd* cmd) { bool time_replaced = false; float curtime_old = g_GlobalVars->curtime;; - if (CE_GOOD(g_pLocalPlayer->entity)) { + if (!g_Settings.bInvalid &&CE_GOOD(g_pLocalPlayer->entity)) { float servertime = (float)CE_INT(g_pLocalPlayer->entity, netvar.nTickBase) * g_GlobalVars->interval_per_tick; g_GlobalVars->curtime = servertime; time_replaced = true;