From: Cloudwalk Date: Tue, 8 Jun 2021 12:18:36 +0000 (-0400) Subject: com_list.h: Fix copy/paste oversight where List_For_Each_Entry went backwards like... X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e3c655432c0a5054156e457f53cdae1efc9600b9;p=xonotic%2Fdarkplaces.git com_list.h: Fix copy/paste oversight where List_For_Each_Entry went backwards like its Prev counterpart --- diff --git a/com_list.h b/com_list.h index da4f3a79..188f8d54 100644 --- a/com_list.h +++ b/com_list.h @@ -117,9 +117,9 @@ typedef struct llist_s * Iterate over a list of a given type */ #define List_For_Each_Entry(pos, head, member) \ - for (pos = List_Last_Entry(head, Q_typeof(*pos), member); \ + for (pos = List_First_Entry(head, Q_typeof(*pos), member); \ !List_Entry_Is_Head(pos, head, member); \ - pos = List_Prev_Entry(pos, member)) + pos = List_Next_Entry(pos, member)) /* * Iterate over a list of a given type backwards