another prebuilt zonecache error thing

This commit is contained in:
rtldg 2021-04-01 14:29:12 +00:00
parent cd8bbdf850
commit d50a93db09

View File

@ -839,8 +839,9 @@ public void OnEntityDestroyed(int entity)
{ {
if (entity > MaxClients && entity < 4096 && gI_EntityZone[entity] > -1) if (entity > MaxClients && entity < 4096 && gI_EntityZone[entity] > -1)
{ {
KillZoneEntity(gI_EntityZone[entity]); int zone = gI_EntityZone[entity];
ClearZone(gI_EntityZone[entity]); KillZoneEntity(zone);
ClearZone(zone);
} }
} }