From 18263c857f150b630e8e99e884907742e3878c44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Sun, 22 May 2005 19:53:57 +0000 Subject: fixed a bug with priorities svn path=/trunk/externals/zexy/; revision=3067 --- src/lifop.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/lifop.c') diff --git a/src/lifop.c b/src/lifop.c index 4c1ccec..21289df 100644 --- a/src/lifop.c +++ b/src/lifop.c @@ -78,14 +78,14 @@ static t_lifop_prioritylist*lifop_genprioritylist(t_lifop*x, t_float priority) result->lifo_start=0; /* insert it into the list of priority lists */ - if(dummy!=0){ + if(dummy==0){ + /* insert at the beginning */ + result->next=x->lifo_list; + x->lifo_list=result; + } else { + /* post insert into the list of LIFOs */ result->next=dummy->next; dummy->next =result; - } else { - result->next=0; - } - if(x->lifo_list==0){ - x->lifo_list=result; } /* return the result */ -- cgit v1.2.1