diff --git a/core/HalfLife2.cpp b/core/HalfLife2.cpp index 50203321..96167126 100644 --- a/core/HalfLife2.cpp +++ b/core/HalfLife2.cpp @@ -795,7 +795,7 @@ cell_t CHalfLife2::IndexToReference(int entIndex) int CHalfLife2::ReferenceToIndex(cell_t entRef) { - if (entRef == INVALID_EHANDLE_INDEX) + if ((unsigned)entRef == INVALID_EHANDLE_INDEX) { return INVALID_EHANDLE_INDEX; } @@ -841,7 +841,7 @@ cell_t CHalfLife2::EntityToBCompatRef(CBaseEntity *pEntity) cell_t CHalfLife2::ReferenceToBCompatRef(cell_t entRef) { - if (entRef == INVALID_EHANDLE_INDEX) + if ((unsigned)entRef == INVALID_EHANDLE_INDEX) { return INVALID_EHANDLE_INDEX; } @@ -860,4 +860,4 @@ cell_t CHalfLife2::ReferenceToBCompatRef(cell_t entRef) void *CHalfLife2::GetGlobalEntityList() { return g_EntList; -} \ No newline at end of file +}