From: terencehill Date: Fri, 5 Mar 2021 18:06:06 +0000 (+0100) Subject: Fix ladder temporary entity not removed in some cases X-Git-Tag: xonotic-v0.8.5~525 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1bfd56504a32a960cec5a7f3721dec87b8abedf5;p=xonotic%2Fxonotic-data.pk3dir.git Fix ladder temporary entity not removed in some cases --- diff --git a/qcsrc/common/mapobjects/func/ladder.qc b/qcsrc/common/mapobjects/func/ladder.qc index 23cdf1d49..36f802f4a 100644 --- a/qcsrc/common/mapobjects/func/ladder.qc +++ b/qcsrc/common/mapobjects/func/ladder.qc @@ -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; }