From: terencehill Date: Sat, 10 Sep 2016 15:53:01 +0000 (+0200) Subject: Remove generator rays from g_drawables before deleting them X-Git-Tag: xonotic-v0.8.2~602 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ce45619e7939176a4221b68891177a26f566bc81;p=xonotic%2Fxonotic-data.pk3dir.git Remove generator rays from g_drawables before deleting them --- diff --git a/qcsrc/common/gamemodes/gamemode/onslaught/cl_generator.qc b/qcsrc/common/gamemodes/gamemode/onslaught/cl_generator.qc index 54ced2fb1..ac7a066ab 100644 --- a/qcsrc/common/gamemodes/gamemode/onslaught/cl_generator.qc +++ b/qcsrc/common/gamemodes/gamemode/onslaught/cl_generator.qc @@ -14,6 +14,7 @@ void ons_generator_ray_draw(entity this) if(this.count > 10) { + IL_REMOVE(g_drawables, this); delete(this); return; }