mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-18 02:50:33 +00:00
server: fix crash when sorting entities on watcom libc
This commit is contained in:
parent
26a1ba543f
commit
303a88730c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user