update money sanitization

This commit is contained in:
ImperialSympathizer 2024-09-27 23:36:35 -04:00
parent 979350cd57
commit 9f4fcbdd66

View File

@ -1047,7 +1047,7 @@ export class GameData {
scene.pokeballCounts = Overrides.POKEBALL_OVERRIDE.pokeballs; scene.pokeballCounts = Overrides.POKEBALL_OVERRIDE.pokeballs;
} }
scene.money = Math.floor(sessionData.money) || 0; scene.money = Math.floor(sessionData.money || 0);
scene.updateMoneyText(); scene.updateMoneyText();
if (scene.money > this.gameStats.highestMoney) { if (scene.money > this.gameStats.highestMoney) {