11 lines
267 B
C++
11 lines
267 B
C++
|
|
#include "handle.h"
|
||
|
|
#include "../cgameentitysystem.h"
|
||
|
|
|
||
|
|
CBaseEntity* CHandle::GetBaseEntity() const
|
||
|
|
{
|
||
|
|
CGameEntitySystem* pEntitySystem = CGameEntitySystem::GetInstance();
|
||
|
|
if (!pEntitySystem)
|
||
|
|
return nullptr;
|
||
|
|
|
||
|
|
return pEntitySystem->GetBaseEntity(GetEntryIndex());
|
||
|
|
}
|