From 9ec062cf715b30c2edf90e88716beaa22428ed9b Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Sat, 22 Jul 2023 00:29:51 -0400 Subject: [PATCH] Add size assert --- LEGO1/mxdisplaysurface.cpp | 2 ++ LEGO1/mxdisplaysurface.h | 1 + 2 files changed, 3 insertions(+) diff --git a/LEGO1/mxdisplaysurface.cpp b/LEGO1/mxdisplaysurface.cpp index bc2aeb4d..3a2642b7 100644 --- a/LEGO1/mxdisplaysurface.cpp +++ b/LEGO1/mxdisplaysurface.cpp @@ -1,5 +1,7 @@ #include "mxdisplaysurface.h" +DECOMP_SIZE_ASSERT(MxDisplaySurface, 0xac); + // OFFSET: LEGO1 0x100ba500 MxDisplaySurface::MxDisplaySurface() { diff --git a/LEGO1/mxdisplaysurface.h b/LEGO1/mxdisplaysurface.h index 630a641d..aef3d5d5 100644 --- a/LEGO1/mxdisplaysurface.h +++ b/LEGO1/mxdisplaysurface.h @@ -10,6 +10,7 @@ #include "decomp.h" // VTABLE 0x100dc768 +// SIZE 0xac class MxDisplaySurface : public MxCore { public: