GCC build fix.

This commit is contained in:
Kyle Sanderson 2014-05-20 20:33:50 -07:00
parent 9af5023a8f
commit 365da7fef6

View File

@ -816,7 +816,7 @@ void SDKHooks::OnEntityCreated(CBaseEntity *pEntity)
int index = gamehelpers->ReferenceToIndex(ref);
// This can be -1 for player ents before any players have connected
if (index == INVALID_EHANDLE_INDEX || m_EntityExists.IsBitSet(index) || (index > 0 && index <= playerhelpers->GetMaxClients()))
if ((unsigned)index == INVALID_EHANDLE_INDEX || m_EntityExists.IsBitSet(index) || (index > 0 && index <= playerhelpers->GetMaxClients()))
{
return;
}
@ -1593,7 +1593,7 @@ void SDKHooks::OnEntityDeleted(CBaseEntity *pEntity)
int index = gamehelpers->ReferenceToIndex(ref);
// This can be -1 for player ents before any players have connected
if (index == INVALID_EHANDLE_INDEX || (index > 0 && index <= playerhelpers->GetMaxClients()))
if ((unsigned)index == INVALID_EHANDLE_INDEX || (index > 0 && index <= playerhelpers->GetMaxClients()))
{
return;
}