From b0c21f2001c5f994ff6760157cab2ce56a083af0 Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Sun, 3 Mar 2024 15:29:07 -0500 Subject: [PATCH] Rename member --- LEGO1/lego/legoomni/src/entity/legoworldpresenter.cpp | 2 +- LEGO1/modeldb/modeldb.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/LEGO1/lego/legoomni/src/entity/legoworldpresenter.cpp b/LEGO1/lego/legoomni/src/entity/legoworldpresenter.cpp index 02075c20..0b96ed04 100644 --- a/LEGO1/lego/legoomni/src/entity/legoworldpresenter.cpp +++ b/LEGO1/lego/legoomni/src/entity/legoworldpresenter.cpp @@ -261,7 +261,7 @@ MxResult LegoWorldPresenter::LoadWorld(char* p_worldName, LegoWorld* p_world) ModelDbPart* part; while (cursor.Next(part)) { - if (GetViewLODListManager()->Lookup(part->m_name.GetData()) == NULL && + if (GetViewLODListManager()->Lookup(part->m_roiName.GetData()) == NULL && FUN_10067360(*part, wdbFile) != SUCCESS) { return FAILURE; } diff --git a/LEGO1/modeldb/modeldb.h b/LEGO1/modeldb/modeldb.h index f41c18c6..ad60e677 100644 --- a/LEGO1/modeldb/modeldb.h +++ b/LEGO1/modeldb/modeldb.h @@ -12,7 +12,7 @@ struct ModelDbPart { MxResult Read(FILE* p_file); - MxString m_name; // 0x00 + MxString m_roiName; // 0x00 undefined4 m_unk0x10; // 0x10 undefined4 m_unk0x14; // 0x14 }; @@ -32,7 +32,7 @@ class ModelDbPartList : public MxList { // FUNCTION: LEGO1 0x10027c40 MxS8 Compare(ModelDbPart* p_a, ModelDbPart* p_b) override { - MxS32 compare = strcmpi(p_a->m_name.GetData(), p_b->m_name.GetData()); + MxS32 compare = strcmpi(p_a->m_roiName.GetData(), p_b->m_roiName.GetData()); if (compare == 0) { p_b->m_unk0x10 = p_a->m_unk0x10;