From ccdb6393398bc7e8fa82be9bd9c56a8ceb1fb67f Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Tue, 24 Dec 2024 11:20:22 -0700 Subject: [PATCH] Add BETA asserts --- LEGO1/lego/legoomni/src/worlds/score.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/LEGO1/lego/legoomni/src/worlds/score.cpp b/LEGO1/lego/legoomni/src/worlds/score.cpp index 27e7fa4b..65c2f9af 100644 --- a/LEGO1/lego/legoomni/src/worlds/score.cpp +++ b/LEGO1/lego/legoomni/src/worlds/score.cpp @@ -299,6 +299,10 @@ void Score::FillArea(MxU32 i_activity, MxU32 i_actor, MxS16 score) MxS32 local28[] = {0x25, 0x29, 0x27, 0x28, 0x28}; MxS32 colors[] = {0x11, 0x0f, 0x08, 0x05}; + assert(i_activity >= 0 && i_activity < 5); + assert(i_actor >= 0 && i_actor < 5); + assert(score >= 0 && score < 4); + MxU8* ptr = m_surface + local3c[i_actor] + local50[i_activity]; MxS32 color = colors[score]; MxS32 size = local28[i_activity];