fixed some stuff
This commit is contained in:
@@ -132,20 +132,22 @@ void CEntitySystem::Think( float fDelta )
|
||||
}
|
||||
}
|
||||
|
||||
static void *UTIL_GetNetMapData(CBaseEntity *pEntity, netmap_t *pMap, uint32_t uIndex )
|
||||
static void *UTIL_GetNetMapData( CBaseEntity *pEntity, netmap_t *pMap, uint32_t uIndex )
|
||||
{
|
||||
netmap_t *pCurrentMap = pMap;
|
||||
uint32_t uCurrentIndex = uIndex;
|
||||
searchIndex:
|
||||
if ( uCurrentIndex < pCurrentMap->m_uFieldCount )
|
||||
if ( pCurrentMap )
|
||||
{
|
||||
if (uCurrentIndex >= pCurrentMap->m_uFieldCount)
|
||||
{
|
||||
uCurrentIndex -= pCurrentMap->m_uFieldCount;
|
||||
pCurrentMap = pCurrentMap->m_pBase;
|
||||
goto searchIndex;
|
||||
}
|
||||
return (char*)pEntity+pCurrentMap->m_pFields[uCurrentIndex].m_uOffset;
|
||||
}
|
||||
uCurrentIndex -= pCurrentMap->m_uFieldCount;
|
||||
pCurrentMap = pCurrentMap->m_pBase;
|
||||
if (!pCurrentMap)
|
||||
return NULL;
|
||||
goto searchIndex;
|
||||
return NULL;
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user