]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix ladder temporary entity not removed in some cases
authorterencehill <piuntn@gmail.com>
Fri, 5 Mar 2021 18:06:06 +0000 (19:06 +0100)
committerterencehill <piuntn@gmail.com>
Fri, 5 Mar 2021 18:06:06 +0000 (19:06 +0100)
qcsrc/common/mapobjects/func/ladder.qc

index 23cdf1d49f4ac454c8d6901070e9d90ab9df3199..36f802f4ad6db241ad5ec55ec64abca32e0ca751 100644 (file)
@@ -121,9 +121,9 @@ void func_ladder_init(entity this)
                        }
                }
        }
+       delete(tracetest_ent);
        if(trace_startsolid || trace_endpos.z < this.absmax.z)
        {
-               delete(tracetest_ent);
                return;
        }