SV_StudioSetupBones fix for non-players

This commit is contained in:
Jonatan Matějka 2016-02-16 21:04:34 +01:00
parent 25f425801a
commit e3503670d1

View File

@ -1215,7 +1215,11 @@ void SV_StudioSetupBones(model_t *pModel, float frame, int sequence, const vec_t
VectorCopy(angles, temp_angles);
if (pEdict != NULL)
#ifdef REGAMEDLL_FIXES
if(pEdict != NULL && CBaseEntity::Instance((edict_t*)pEdict)->IsPlayer())
#else
if(pEdict != NULL)
#endif
{
temp_angles[1] = UTIL_GetPlayerGaitYaw(ENTINDEX(pEdict));