mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-08 01:39:36 +00:00
arm64 : fix intptr_t size
This commit is contained in:
@@ -49,6 +49,9 @@ struct AISightIterVal_t
|
||||
char array;
|
||||
short iNext;
|
||||
char SeenArray;
|
||||
#ifdef PLATFORM_64BITS
|
||||
uint32 unused;
|
||||
#endif
|
||||
};
|
||||
|
||||
#pragma pack(pop)
|
||||
@@ -272,7 +275,7 @@ CBaseEntity *CAI_Senses::GetFirstSeenEntity( AISightIter_t *pIter, seentype_t iS
|
||||
|
||||
CBaseEntity *CAI_Senses::GetNextSeenEntity( AISightIter_t *pIter ) const
|
||||
{
|
||||
if ( ((int)*pIter) != -1 )
|
||||
if ( ((intp)*pIter) != -1 )
|
||||
{
|
||||
AISightIterVal_t *pIterVal = (AISightIterVal_t *)pIter;
|
||||
|
||||
@@ -581,7 +584,7 @@ CSound* CAI_Senses::GetNextHeardSound( AISoundIter_t *pIter )
|
||||
if ( !*pIter )
|
||||
return NULL;
|
||||
|
||||
int iCurrent = (int)*pIter;
|
||||
int iCurrent = (intp)*pIter;
|
||||
|
||||
Assert( iCurrent != SOUNDLIST_EMPTY );
|
||||
if ( iCurrent == SOUNDLIST_EMPTY )
|
||||
|
||||
Reference in New Issue
Block a user