From 30b25594c1bd5cfcd8aaa56c187f52deaae442a5 Mon Sep 17 00:00:00 2001 From: ASpoonPlaysGames <66967891+ASpoonPlaysGames@users.noreply.github.com> Date: Thu, 20 Jan 2022 18:51:10 +0000 Subject: Fix DecideSpawnZone_Generic crash (#143) --- Northstar.CustomServers/mod/scripts/vscripts/mp/spawn.nut | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Northstar.CustomServers/mod/scripts/vscripts/mp/spawn.nut b/Northstar.CustomServers/mod/scripts/vscripts/mp/spawn.nut index 42e107e45..2b1a07130 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/mp/spawn.nut +++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/spawn.nut @@ -653,7 +653,7 @@ entity function DecideSpawnZone_Generic( array spawnzones, int team ) return 0 } ) - entity chosenZone = possibleZones[ minint( RandomInt( 3 ), possibleZones.len() ) ] + entity chosenZone = possibleZones[ minint( RandomInt( 3 ), possibleZones.len() - 1 ) ] if ( spawnStateSpawnzones.shouldCreateMinimapSpawnzones ) { -- cgit v1.2.3