projects
/
xonotic
/
darkplaces.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f7645e
)
com_list.h: Fix copy/paste oversight where List_For_Each_Entry went backwards like...
author
Cloudwalk <cloudwalk009@gmail.com>
Tue, 8 Jun 2021 12:18:36 +0000
(08:18 -0400)
committer
Cloudwalk <cloudwalk009@gmail.com>
Tue, 8 Jun 2021 12:18:36 +0000
(08:18 -0400)
com_list.h
patch
|
blob
|
history
diff --git
a/com_list.h
b/com_list.h
index da4f3a79d9ebea846d93ad8de44daa99418da97f..188f8d54d0cf6bea204df6b59db1ee2165492a20 100644
(file)
--- 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_
La
st_Entry(head, Q_typeof(*pos), member); \
+ for (pos = List_
Fir
st_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