mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2024-12-26 14:45:38 +03:00
fix crash in UTIL_AreHostagesImprov (#626)
add check g_engfuncs.pfnEngCheckParm is nullptr or not.
This commit is contained in:
parent
64059d1026
commit
a27ce74e10
@ -1725,6 +1725,9 @@ bool UTIL_AreHostagesImprov()
|
||||
}
|
||||
|
||||
#ifdef REGAMEDLL_ADD
|
||||
if (g_engfuncs.pfnEngCheckParm == nullptr)
|
||||
return false;
|
||||
|
||||
// someday in CS 1.6
|
||||
int improv = ENG_CHECK_PARM("-host-improv", nullptr);
|
||||
if (improv)
|
||||
|
Loading…
Reference in New Issue
Block a user