From 169a45aa2f3d901f7b8266731d7eb91a001ef24b Mon Sep 17 00:00:00 2001 From: aap Date: Tue, 3 Dec 2024 16:06:13 +0100 Subject: [PATCH] fixed embarrassingly wrong plugin order --- src/plg.cpp | 4 ++-- src/rwbase.h | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/plg.cpp b/src/plg.cpp index c5c3782e..358a67a9 100644 --- a/src/plg.cpp +++ b/src/plg.cpp @@ -185,8 +185,8 @@ PluginList::registerPlugin(int32 size, uint32 id, p->rightsCallback = nil; p->alwaysCallback = nil; p->parentList = this; - this->plugins.add(&p->inParentList); - allPlugins.add(&p->inGlobalList); + this->plugins.append(&p->inParentList); + allPlugins.append(&p->inGlobalList); return p->offset; } diff --git a/src/rwbase.h b/src/rwbase.h index 6179dd6f..6bc8a544 100644 --- a/src/rwbase.h +++ b/src/rwbase.h @@ -70,9 +70,13 @@ typedef int32 bool32; typedef uint8 byte; typedef uint32 uint; +#ifndef nil #define nil NULL +#endif +#ifndef nelem #define nelem(A) (sizeof(A) / sizeof A[0]) +#endif #ifdef __GNUC__ #define RWALIGN(n) __attribute__ ((aligned (n)))