server: fix crash when sorting entities on watcom libc

This commit is contained in:
mittorn 2020-02-08 22:37:21 +07:00
parent 26a1ba543f
commit 303a88730c
1 changed files with 2 additions and 1 deletions

View File

@ -40,8 +40,9 @@ static int SV_EntityNumbers( const void *a, const void *b )
ent1 = ((entity_state_t *)a)->number;
ent2 = ((entity_state_t *)b)->number;
// watcom libc compares ents with itself
if( ent1 == ent2 )
Host_Error( "SV_SortEntities: duplicated entity\n" );
return 0;
if( ent1 < ent2 )
return -1;