This commit is contained in:
Christian Semmler 2024-02-19 09:18:59 -05:00
parent eb0bcb9837
commit 096487b2cb
3 changed files with 6 additions and 6 deletions

View File

@ -94,7 +94,7 @@ class LegoGameState {
};
// SIZE 0x2c
struct Score {
struct ScoreItem {
undefined2 m_unk0x00; // 0x00
MxU8 m_state[25]; // 0x02
ScoreName m_name; // 0x1c
@ -106,10 +106,10 @@ class LegoGameState {
void WriteScoreHistory();
void FUN_1003ccf0(LegoFile&);
inline Score* GetScore(MxS16 p_index) { return p_index >= m_count ? NULL : &m_scores[p_index]; }
inline ScoreItem* GetScore(MxS16 p_index) { return p_index >= m_count ? NULL : &m_scores[p_index]; }
MxS16 m_count; // 0x00
Score m_scores[20]; // 0x02
MxS16 m_count; // 0x00
ScoreItem m_scores[20]; // 0x02
};
LegoGameState();

View File

@ -16,7 +16,7 @@
#include <stdio.h>
DECOMP_SIZE_ASSERT(LegoGameState::ScoreName, 0xe)
DECOMP_SIZE_ASSERT(LegoGameState::Score, 0x2c)
DECOMP_SIZE_ASSERT(LegoGameState::ScoreItem, 0x2c)
DECOMP_SIZE_ASSERT(LegoGameState::Scores, 0x372)
DECOMP_SIZE_ASSERT(LegoGameState, 0x430)

View File

@ -94,7 +94,7 @@ void HistoryBook::ReadyWorld()
MxS32 scoreY = 0x79;
for (MxS16 scoreIndex = 0; scoreIndex < GameState()->GetScores()->m_count; scoreIndex++) {
LegoGameState::Score* score = GameState()->GetScores()->GetScore(scoreIndex);
LegoGameState::ScoreItem* score = GameState()->GetScores()->GetScore(scoreIndex);
MxStillPresenter** scorebox = &m_scores[scoreIndex];
*scorebox = scoreboxMaster->Clone();