fix crash when changing thirdperson settings in menu
This commit is contained in:
parent
c4ac161569
commit
390f499ffe
@ -14,7 +14,7 @@ int g_AppID = 0;
|
||||
|
||||
void ThirdpersonCallback(IConVar* var, const char* pOldValue, float flOldValue) {
|
||||
if (force_thirdperson.convar_parent && !force_thirdperson) {
|
||||
if (g_pLocalPlayer && g_pLocalPlayer->entity)
|
||||
if (g_pLocalPlayer && CE_GOOD(g_pLocalPlayer->entity))
|
||||
CE_INT(g_pLocalPlayer->entity, netvar.nForceTauntCam) = 0;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user