Fixed a crash involving clientside ragdoll impact decals

This commit is contained in:
Blixibon 2021-11-13 09:12:51 -06:00
parent 301309f76b
commit 7161dee1a3

View File

@ -173,7 +173,7 @@ bool Impact( Vector &vecOrigin, Vector &vecStart, int iMaterial, int iDamageType
{ {
bHitRagdoll = true; bHitRagdoll = true;
if (g_ragdoll_client_impact_decals.GetBool()) if (g_ragdoll_client_impact_decals.GetBool() && pRagdoll->IsRagdoll())
{ {
pEntity = pRagdoll; pEntity = pRagdoll;