Skip to content

Commit

Permalink
Fixed misaligned options file reading
Browse files Browse the repository at this point in the history
  • Loading branch information
mmatyas committed Apr 7, 2024
1 parent ed0fb0b commit 6e0e046
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/common/GameValues.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,8 @@ void CGameValues::ReadBinaryConfig() {
poweruppreset = options.read_i16();
options.read_i16_array((int16_t *)g_iCurrentPowerupPresets, NUM_POWERUP_PRESETS * NUM_POWERUPS);

fullscreen = options.read_bool();

for (short iGameMode = 0; iGameMode < GAMEMODE_LAST; iGameMode++)
gamemodes[iGameMode]->goal = options.read_i16();

Expand Down

0 comments on commit 6e0e046

Please sign in to comment.