From: Stephan Stahl Date: Sat, 19 Feb 2011 18:30:26 +0000 (+0100) Subject: this way animations should not possible leak ents X-Git-Tag: xonotic-v0.5.0~309^2~21 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8a70a4df19594b132c2176803c3bfa337479bd14;p=xonotic%2Fxonotic-data.pk3dir.git this way animations should not possible leak ents --- diff --git a/qcsrc/menu/anim/animhost.c b/qcsrc/menu/anim/animhost.c index fc345e445..1d02df563 100644 --- a/qcsrc/menu/anim/animhost.c +++ b/qcsrc/menu/anim/animhost.c @@ -65,6 +65,7 @@ void AnimHost_removeAnim(entity me, entity other) n.prevSibling = p; else me.lastChild = p; + remove(other); } void AnimHost_removeAllAnim(entity me) @@ -141,7 +142,6 @@ void AnimHost_finishAllAnim(entity me) { tmp = e; e = tmp.prevSibling; - me.removeAnim(me, tmp); tmp.finishAnim(tmp); } } @@ -155,7 +155,6 @@ void AnimHost_finishObjAnim(entity me, entity obj) { tmp = e; e = tmp.prevSibling; - me.removeAnim(me, tmp); tmp.finishAnim(tmp); } } @@ -175,7 +174,6 @@ void AnimHost_tickAll(entity me) tmp = e; e = tmp.prevSibling; me.removeAnim(me, tmp); - remove(tmp); } } }