diff --git a/LEGO1/lego/sources/geom/legobox.cpp b/LEGO1/lego/sources/geom/legobox.cpp index c9a28505..0a5f2bdb 100644 --- a/LEGO1/lego/sources/geom/legobox.cpp +++ b/LEGO1/lego/sources/geom/legobox.cpp @@ -1,7 +1,10 @@ #include "legobox.h" +#include "decomp.h" #include "misc/legoutil.h" +DECOMP_SIZE_ASSERT(LegoBox, 0x18) + // FUNCTION: LEGO1 0x100d3740 LegoResult LegoBox::Read(LegoStorage* p_storage) { diff --git a/LEGO1/lego/sources/geom/legosphere.cpp b/LEGO1/lego/sources/geom/legosphere.cpp index 8d05352a..7b916326 100644 --- a/LEGO1/lego/sources/geom/legosphere.cpp +++ b/LEGO1/lego/sources/geom/legosphere.cpp @@ -1,7 +1,10 @@ #include "legosphere.h" +#include "decomp.h" #include "misc/legostorage.h" +DECOMP_SIZE_ASSERT(LegoSphere, 0x10) + // FUNCTION: LEGO1 0x100d3770 LegoResult LegoSphere::Read(LegoStorage* p_storage) { diff --git a/LEGO1/lego/sources/geom/legovertex.cpp b/LEGO1/lego/sources/geom/legovertex.cpp index 94122bd0..2977d60a 100644 --- a/LEGO1/lego/sources/geom/legovertex.cpp +++ b/LEGO1/lego/sources/geom/legovertex.cpp @@ -1,7 +1,10 @@ #include "legovertex.h" +#include "decomp.h" #include "misc/legostorage.h" +DECOMP_SIZE_ASSERT(LegoVertex, 0x0c) + // FUNCTION: LEGO1 0x100d37b0 LegoVertex::LegoVertex() { diff --git a/LEGO1/lego/sources/roi/legoroi.cpp b/LEGO1/lego/sources/roi/legoroi.cpp index 822768a1..5656fd02 100644 --- a/LEGO1/lego/sources/roi/legoroi.cpp +++ b/LEGO1/lego/sources/roi/legoroi.cpp @@ -175,8 +175,9 @@ LegoResult LegoROI::Read( if (m_unk0x100) { for (roiLength = strlen(m_name); roiLength; roiLength--) { - if (m_name[roiLength - 1] < '0' || m_name[roiLength - 1] > '9') + if (m_name[roiLength - 1] < '0' || m_name[roiLength - 1] > '9') { break; + } } roiName = new LegoChar[roiLength + 1];