Remove generator rays from g_drawables before deleting them
authorterencehill <piuntn@gmail.com>
Sat, 10 Sep 2016 15:53:01 +0000 (17:53 +0200)
committerterencehill <piuntn@gmail.com>
Sat, 10 Sep 2016 15:53:01 +0000 (17:53 +0200)
qcsrc/common/gamemodes/gamemode/onslaught/cl_generator.qc

index 54ced2f..ac7a066 100644 (file)
@@ -14,6 +14,7 @@ void ons_generator_ray_draw(entity this)
 
        if(this.count > 10)
        {
+               IL_REMOVE(g_drawables, this);
                delete(this);
                return;
        }