fix 1 crash

This commit is contained in:
nullifiedcat 2017-03-18 10:31:54 +03:00
parent 62c0007e15
commit d396d84964

View File

@ -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;