From 2d9b0e49067582fc8b73f867281503fa835a7083 Mon Sep 17 00:00:00 2001 From: Nev3r Date: Wed, 15 Apr 2020 09:32:19 +0200 Subject: [PATCH] Fix the args in Tag_FindLineSpecial() being swapped. --- src/taglist.c | 2 +- src/taglist.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/taglist.c b/src/taglist.c index 4b3ed1981..61b8a147d 100644 --- a/src/taglist.c +++ b/src/taglist.c @@ -112,7 +112,7 @@ INT32 Tag_Iterate_Things (const INT16 tag, const size_t p) return -1; } -INT32 Tag_FindLineSpecial(const INT16 tag, const INT16 special) +INT32 Tag_FindLineSpecial(const INT16 special, const INT16 tag) { TAG_ITER_C INT32 i; diff --git a/src/taglist.h b/src/taglist.h index 9be0013f3..59ecd6106 100644 --- a/src/taglist.h +++ b/src/taglist.h @@ -32,7 +32,7 @@ INT32 Tag_Iterate_Sectors (const INT16 tag, const size_t p); INT32 Tag_Iterate_Lines (const INT16 tag, const size_t p); INT32 Tag_Iterate_Things (const INT16 tag, const size_t p); -INT32 Tag_FindLineSpecial(const INT16 tag, const INT16 special); +INT32 Tag_FindLineSpecial(const INT16 special, const INT16 tag); #define TAG_ITER_C size_t kkkk; #define TAG_ITER(fn, tag, id) for(kkkk = 0; (id = fn(tag, kkkk)) >= 0; kkkk++)