From 7161dee1a34723bf8dea5300f834a5f49a560d51 Mon Sep 17 00:00:00 2001 From: Blixibon Date: Sat, 13 Nov 2021 09:12:51 -0600 Subject: [PATCH] Fixed a crash involving clientside ragdoll impact decals --- sp/src/game/client/fx_impact.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sp/src/game/client/fx_impact.cpp b/sp/src/game/client/fx_impact.cpp index 0ef81cc5..236e39b4 100644 --- a/sp/src/game/client/fx_impact.cpp +++ b/sp/src/game/client/fx_impact.cpp @@ -173,7 +173,7 @@ bool Impact( Vector &vecOrigin, Vector &vecStart, int iMaterial, int iDamageType { bHitRagdoll = true; - if (g_ragdoll_client_impact_decals.GetBool()) + if (g_ragdoll_client_impact_decals.GetBool() && pRagdoll->IsRagdoll()) { pEntity = pRagdoll;