From 8a70a4df19594b132c2176803c3bfa337479bd14 Mon Sep 17 00:00:00 2001 From: Stephan Stahl Date: Sat, 19 Feb 2011 19:30:26 +0100 Subject: [PATCH] this way animations should not possible leak ents --- qcsrc/menu/anim/animhost.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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); } } } -- 2.39.2