File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1832,8 +1832,8 @@ void RaceSession::FUN_00434c80()
18321832{
18331833 LegoU32 racerIndex = 0 ;
18341834 if (m_context->m_racerCount > 0 ) {
1835- RaceState::Racer* racer = m_raceState.GetRacers ();
18361835 do {
1836+ RaceState::Racer* racer = &m_raceState.GetRacers ()[racerIndex];
18371837 if (racer->m_lapsCompleted >= m_unk0x3348 && !(racer->m_unk0xd04 & 0x1000 )) {
18381838 racer->m_unk0xd04 |= 0x1000 ;
18391839
@@ -1844,7 +1844,7 @@ void RaceSession::FUN_00434c80()
18441844 m_unk0x3330++;
18451845 racer->FUN_0043a210 (m_unk0x3330);
18461846
1847- if (racer->m_unk0xd08 != 2 || ! m_unk0x3350 || racerIndex == 0 ) {
1847+ if (racer->m_unk0xd08 != 2 || ( m_unk0x3350 && racerIndex == 0 ) ) {
18481848 LegoU32 playerIndex = 0 ;
18491849 RaceState::Racer** playerRacer = m_raceState.m_unk0x318 ;
18501850 while (*playerRacer != racer && playerIndex < m_context->m_playerCount ) {
@@ -1903,7 +1903,6 @@ void RaceSession::FUN_00434c80()
19031903 }
19041904
19051905 racerIndex++;
1906- racer++;
19071906 } while (racerIndex < m_context->m_racerCount );
19081907 }
19091908}
You can’t perform that action at this time.
0 commit comments