diff --git a/project/src/controllers/GameController.ts b/project/src/controllers/GameController.ts index e643fae0..4b0001a5 100644 --- a/project/src/controllers/GameController.ts +++ b/project/src/controllers/GameController.ts @@ -285,7 +285,7 @@ export class GameController continue; } - for (const wave of location.base.waves) + for (const wave of location.base.waves ?? []) { if ((wave.slots_max - wave.slots_min === 0)) {