From cdf9a776002275cda11614b262698bfbbc944e24 Mon Sep 17 00:00:00 2001 From: Very Strange Karaulov <62130676+2020karaulov2020@users.noreply.github.com> Date: Mon, 8 Feb 2021 11:14:33 +0300 Subject: [PATCH] More info to 9999 error https://github.com/dreamstalker/rehlds/issues/805 --- rehlds/engine/sv_main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rehlds/engine/sv_main.cpp b/rehlds/engine/sv_main.cpp index 70ef0a2..179a9f3 100644 --- a/rehlds/engine/sv_main.cpp +++ b/rehlds/engine/sv_main.cpp @@ -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;