Protect loop from undefined error inside fixBrokenOfflineMapWaves() when map has missing waves array
This commit is contained in:
parent
e2b1d4d0c6
commit
c489db81b1
@ -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))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user