2
0
mirror of https://github.com/rehlds/rehlds.git synced 2024-12-27 07:05:43 +03:00

More info to 9999 error

https://github.com/dreamstalker/rehlds/issues/805
This commit is contained in:
Very Strange Karaulov 2021-02-08 11:14:33 +03:00 committed by GitHub
parent 722e19df31
commit cdf9a77600
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4372,6 +4372,11 @@ int SV_CreatePacketEntities_internal(sv_delta_t type, client_t *client, packet_e
}
continue;
}
#ifdef REHLDS_FIXES
if (newindex == 9999)
Sys_Error("%s: bad call from metamod/amxx plugin.", "SV_CreatePacketEntities");
#endif
edict_t *ent = EDICT_NUM(newindex);
qboolean custom = to->entities[newnum].entityType & 0x2 ? TRUE : FALSE;