mirror of
https://github.com/rei-kes/Amalgam.git
synced 2025-06-19 07:28:09 +08:00
Possible crash fix?
This commit is contained in:
parent
c28e76fb11
commit
ea3aa37609
@ -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<CBaseAnimating*>(ecx))
|
||||
auto pEntity = static_cast<CBaseAnimating*>(ecx);
|
||||
if (pEntity)
|
||||
{
|
||||
if (Vars::Visuals::Ragdolls::EnemyOnly.Value)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user