mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
17 lines
544 B
C++
17 lines
544 B
C++
//===== Copyright © 1996-2005, Valve Corporation, All rights reserved. ======//
|
|
//
|
|
// Purpose:
|
|
//
|
|
//===========================================================================//
|
|
#include "core/stdafx.h"
|
|
#include "entitylist.h"
|
|
|
|
IHandleEntity* LookupEntityByIndex(int iEntity)
|
|
{
|
|
Assert(iEntity >= 0 && iEntity < NUM_ENT_ENTRIES); // Programmer error!
|
|
|
|
IHandleEntity* pHandle = reinterpret_cast<IHandleEntity*>(*&g_pEntityList[6 * iEntity]);
|
|
return pHandle; // !TODO: implement CBaseEntityList properly.
|
|
}
|
|
|
|
CEntInfo** g_pEntityList = nullptr; |