X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fmenu%2Fanim%2Fanimhost.c;h=ae84e0957da7be5efaff03271861b81b5810d6c4;hp=48a45bda8465795e8883373ab088918783c4c0d3;hb=e0ac5f9f14e169a1e19d0e36b85cab061a74ed93;hpb=44e7b9d6058eef0fa6612930ef5d57dd6df1ca77 diff --git a/qcsrc/menu/anim/animhost.c b/qcsrc/menu/anim/animhost.c index 48a45bda8..ae84e0957 100644 --- a/qcsrc/menu/anim/animhost.c +++ b/qcsrc/menu/anim/animhost.c @@ -29,8 +29,7 @@ void AnimHost_addAnim(entity me, entity other) other.parent = me; - entity f, l; - f = me.firstChild; + entity l; l = me.lastChild; if(l) @@ -50,9 +49,7 @@ void AnimHost_removeAnim(entity me, entity other) other.parent = NULL; - entity n, p, f, l; - f = me.firstChild; - l = me.lastChild; + entity n, p; n = other.nextSibling; p = other.prevSibling;