From 21bf9170fccea5e12c66da21d7f1caa9b84f6375 Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Thu, 7 Mar 2024 14:18:26 -0500 Subject: [PATCH] Fix --- LEGO1/lego/sources/roi/legolod.cpp | 2 +- LEGO1/lego/sources/roi/legoroi.cpp | 2 +- LEGO1/lego/sources/roi/legoroi.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/LEGO1/lego/sources/roi/legolod.cpp b/LEGO1/lego/sources/roi/legolod.cpp index b3204ce4..5e64f5a1 100644 --- a/LEGO1/lego/sources/roi/legolod.cpp +++ b/LEGO1/lego/sources/roi/legolod.cpp @@ -63,8 +63,8 @@ LegoResult LegoLOD::Read(Tgl::Renderer* p_renderer, LegoTextureContainer* p_text LegoBool und = FALSE; LegoU32 i, meshUnd1, meshUnd2, tempNumVertsAndNormals; - Tgl::PaletteEntry paletteEntries[256]; Tgl::ShadingModel shadingModel; + unsigned char paletteEntries[256]; if (p_storage->Read(&m_unk0x08, sizeof(m_unk0x08)) != SUCCESS) { goto done; diff --git a/LEGO1/lego/sources/roi/legoroi.cpp b/LEGO1/lego/sources/roi/legoroi.cpp index 2e77258b..70f899aa 100644 --- a/LEGO1/lego/sources/roi/legoroi.cpp +++ b/LEGO1/lego/sources/roi/legoroi.cpp @@ -394,7 +394,7 @@ LegoBool LegoROI::ColorAliasLookup(const LegoChar* p_param, float& p_red, float& } // STUB: LEGO1 0x100a9cf0 -LegoBool LegoROI::FUN_100a9cf0(const LegoChar* p_param, Tgl::PaletteEntry* paletteEntries, LegoU32 p_numEntries) +LegoBool LegoROI::FUN_100a9cf0(const LegoChar* p_param, unsigned char* paletteEntries, LegoU32 p_numEntries) { // TODO return FALSE; diff --git a/LEGO1/lego/sources/roi/legoroi.h b/LEGO1/lego/sources/roi/legoroi.h index 5a151984..2b303944 100644 --- a/LEGO1/lego/sources/roi/legoroi.h +++ b/LEGO1/lego/sources/roi/legoroi.h @@ -46,7 +46,7 @@ class LegoROI : public ViewROI { float& p_blue, float& p_alpha ); - static LegoBool FUN_100a9cf0(const LegoChar* p_param, Tgl::PaletteEntry* paletteEntries, LegoU32 p_numEntries); + static LegoBool FUN_100a9cf0(const LegoChar* p_param, unsigned char* paletteEntries, LegoU32 p_numEntries); inline const LegoChar* GetName() const { return m_name; } inline LegoEntity* GetEntity() { return m_entity; }