diff --git a/source/core/src/main/com/csse3200/game/components/tasks/waves/WaveTask.java b/source/core/src/main/com/csse3200/game/components/tasks/waves/WaveTask.java index b67f42edf..52691fa25 100644 --- a/source/core/src/main/com/csse3200/game/components/tasks/waves/WaveTask.java +++ b/source/core/src/main/com/csse3200/game/components/tasks/waves/WaveTask.java @@ -98,12 +98,12 @@ public void update() { // Check if level has been completed - no more waves remaining if (currentWaveIndex == this.level.getNumWaves()) { logger.info("No waves remaining, level completed"); - this.waveEnd.play(); ServiceLocator.getWaveService().setLevelCompleted(); } else { // Spawn the next wave logger.info("No enemies remaining, begin next wave"); + this.waveEnd.play(); this.waveInProgress = true; this.level.setWaveIndex(currentWaveIndex); this.currentWave = this.level.getWave(currentWaveIndex);