Skip to content

Commit

Permalink
Bugfix new levels
Browse files Browse the repository at this point in the history
  • Loading branch information
tonym128 committed Dec 5, 2023
1 parent 77eab28 commit 96ba6f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion racer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ void updateGameMode()
uint16_t levelTime = FX::readIndexedUInt16(FX_LEVEL_TIMES, (gameState.level - 1) * 3 + 2);
if (saveData.BestLapTimes[gameState.level - 1] < levelTime)
{ // If the time is better than 3rd place, we can go forwards
if (saveData.maxLevel < gameState.level + 1 && gameState.level < 10)
if (saveData.maxLevel < gameState.level + 1 && gameState.level < LEVELS)
saveData.maxLevel = gameState.level + 1;
}

Expand Down

0 comments on commit 96ba6f1

Please sign in to comment.