diff --git a/src/roulette/manager/DataManager.hpp b/src/roulette/manager/DataManager.hpp index e56e0e1..8c36b79 100644 --- a/src/roulette/manager/DataManager.hpp +++ b/src/roulette/manager/DataManager.hpp @@ -95,6 +95,7 @@ namespace DataManager std::ifstream saveDataFileIn(saveDataPath, std::ios::binary); saveDataFileIn.seekg(0, std::ios::end); + // TODO: this check always fails on Android :D if (force_clean || saveDataFileIn.fail() || saveDataFileIn.tellg() != sizeof(GameState)) { GameState defaultValue; diff --git a/src/roulette/manager/RouletteManager.hpp b/src/roulette/manager/RouletteManager.hpp index a7618ec..cf759f8 100644 --- a/src/roulette/manager/RouletteManager.hpp +++ b/src/roulette/manager/RouletteManager.hpp @@ -45,7 +45,7 @@ struct RouletteManager gameState = DataManager::setDefaultSafe(); if (gameState.levelID != 0) - currentPercentageGoal = gameState.levelPercentage; + currentPercentageGoal = gameState.levelPercentageGoal; previousDifficulty = getDifficultyFromSaveContainer(); previousDemonDifficulty = getDifficultyFromSaveContainer();