From ce45619e7939176a4221b68891177a26f566bc81 Mon Sep 17 00:00:00 2001 From: terencehill Date: Sat, 10 Sep 2016 17:53:01 +0200 Subject: [PATCH] Remove generator rays from g_drawables before deleting them --- qcsrc/common/gamemodes/gamemode/onslaught/cl_generator.qc | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.39.2