From b1a3f5a2db8ae569ca3eeb8b1cb8845dd1198e01 Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Thu, 12 Oct 2023 11:58:21 -0400 Subject: [PATCH] Fixes --- LEGO1/infocenterstate.h | 1 + LEGO1/mxobjectfactory.h | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/LEGO1/infocenterstate.h b/LEGO1/infocenterstate.h index 47500b47..af3f4a46 100644 --- a/LEGO1/infocenterstate.h +++ b/LEGO1/infocenterstate.h @@ -29,6 +29,7 @@ class InfocenterState : public LegoState inline MxU32 GetInfocenterBufferElement(MxS32 p_index) { return m_buffer[p_index]; } private: + // Members should be renamed with their offsets before use /* struct SomeStruct { diff --git a/LEGO1/mxobjectfactory.h b/LEGO1/mxobjectfactory.h index eb7030ed..b7e0be07 100644 --- a/LEGO1/mxobjectfactory.h +++ b/LEGO1/mxobjectfactory.h @@ -24,14 +24,14 @@ class MxObjectFactory : public MxCore public: MxObjectFactory(); - // OFFSET: LEGO1 0x1008f70 + // OFFSET: LEGO1 0x10008f70 inline virtual const char *ClassName() const override // vtable+0xc { // 0x100f0730 return "MxObjectFactory"; } - // OFFSET: LEGO1 0x1008f80 + // OFFSET: LEGO1 0x10008f80 inline virtual MxBool IsA(const char *name) const override // vtable+0x10 { return !strcmp(name, MxObjectFactory::ClassName()) || MxCore::IsA(name);