mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2026-10-11 07:48:00 +08:00
Fix debug issues in memoverride.cpp
This commit is contained in:
1 parent
f653b1ec62
commit
8e69335c67
2 files changed
+9
-2
No files matched your search
@@ -14,7 +14,7 @@ CBaseEntity* CEntitySystem::GetBaseEntity(CEntityIndex entnum)
|
||||
if (!pIdentity)
|
||||
return nullptr;
|
||||
|
||||
if (pIdentity->m_EHandle.GetEntryIndex() != entnum.Get())
|
||||
if (pIdentity->GetEntityIndex() != entnum)
|
||||
return nullptr;
|
||||
|
||||
return static_cast<CBaseEntity*>(pIdentity->m_pInstance);
|
||||
@@ -33,7 +33,7 @@ CBaseEntity* CEntitySystem::GetBaseEntity(const CEntityHandle& hEnt)
|
||||
if (!pIdentity)
|
||||
return nullptr;
|
||||
|
||||
if (pIdentity->m_EHandle != hEnt)
|
||||
if (pIdentity->GetRefEHandle() != hEnt)
|
||||
return nullptr;
|
||||
|
||||
return static_cast<CBaseEntity*>(pIdentity->m_pInstance);
|
||||
|
||||
Reference in new issue
Block a user