diff --git a/core/src/io/anuke/mindustry/core/Control.java b/core/src/io/anuke/mindustry/core/Control.java index 317c3d9c31be..3958a0d4d9bf 100644 --- a/core/src/io/anuke/mindustry/core/Control.java +++ b/core/src/io/anuke/mindustry/core/Control.java @@ -172,7 +172,7 @@ public int getX(int pointer) { Events.on(WaveEvent.class, () -> { Sounds.play("spawn"); - int last = Settings.getInt("hiscore" + world.getMap().name); + int last = Settings.getInt("hiscore" + world.getMap().name, 0); if(state.wave > last && !state.mode.infiniteResources && !state.mode.disableWaveTimer){ Settings.putInt("hiscore" + world.getMap().name, state.wave);