diff --git a/Amalgam/src/Hooks/CTFRagdoll_CreateTFRagdoll.cpp b/Amalgam/src/Hooks/CTFRagdoll_CreateTFRagdoll.cpp index bf73efc..2c3305c 100644 --- a/Amalgam/src/Hooks/CTFRagdoll_CreateTFRagdoll.cpp +++ b/Amalgam/src/Hooks/CTFRagdoll_CreateTFRagdoll.cpp @@ -24,7 +24,8 @@ MAKE_HOOK(CTFRagdoll_CreateTFRagdoll, S::CTFRagdoll_CreateTFRagdoll(), void, __f if (!Vars::Visuals::Ragdolls::Enabled.Value) return CALL_ORIGINAL(ecx); - if (auto pEntity = static_cast(ecx)) + auto pEntity = static_cast(ecx); + if (pEntity) { if (Vars::Visuals::Ragdolls::EnemyOnly.Value) {