From 382f058c2383c22e333189f5fdd8e1917c7d6bac Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Fri, 24 Jan 2025 16:32:08 -0700 Subject: [PATCH] Match `RegistrationBook::ReadyWorld` (#1375) --- .../legoomni/src/worlds/registrationbook.cpp | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/LEGO1/lego/legoomni/src/worlds/registrationbook.cpp b/LEGO1/lego/legoomni/src/worlds/registrationbook.cpp index 0e081133..7a4a43c2 100644 --- a/LEGO1/lego/legoomni/src/worlds/registrationbook.cpp +++ b/LEGO1/lego/legoomni/src/worlds/registrationbook.cpp @@ -392,17 +392,20 @@ void RegistrationBook::ReadyWorld() { LegoGameState* gameState = GameState(); gameState->m_history.WriteScoreHistory(); - MxS16 i; PlayMusic(JukeboxScript::c_InformationCenter_Music); char letterBuffer[] = "A_Bitmap"; - for (i = 0; i < 26; i++) { - m_alphabet[i] = (MxStillPresenter*) Find("MxStillPresenter", letterBuffer); + MxS16 i; - // We need to loop through the entire alphabet, - // so increment the first char of the bitmap name - letterBuffer[0]++; + for (i = 0; i < 26; i++) { + if (i < 26) { + m_alphabet[i] = (MxStillPresenter*) Find("MxStillPresenter", letterBuffer); + + // We need to loop through the entire alphabet, + // so increment the first char of the bitmap name + letterBuffer[0]++; + } } // Now we have to do the checkmarks @@ -437,7 +440,7 @@ void RegistrationBook::ReadyWorld() } } - if (m_infocenterState->HasRegistered()) { + if (m_infocenterState->m_letters[0] != NULL) { PlayAction(RegbookScript::c_iic008in_PlayWav); LegoROI* infoman = FindROI(g_infoman);