aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorASpoonPlaysGames <66967891+ASpoonPlaysGames@users.noreply.github.com>2022-01-20 18:51:10 +0000
committerGitHub <noreply@github.com>2022-01-20 15:51:10 -0300
commit30b25594c1bd5cfcd8aaa56c187f52deaae442a5 (patch)
tree4446f9a41473cbcc05fc7baafd2aa850b257d0d2
parent0a169db4ab3db1f05f3a95b73e3b55f0268239c5 (diff)
downloadNorthstarMods-30b25594c1bd5cfcd8aaa56c187f52deaae442a5.tar.gz
NorthstarMods-30b25594c1bd5cfcd8aaa56c187f52deaae442a5.zip
Fix DecideSpawnZone_Generic crash (#143)
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/mp/spawn.nut2
1 files changed, 1 insertions, 1 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/mp/spawn.nut b/Northstar.CustomServers/mod/scripts/vscripts/mp/spawn.nut
index 42e107e4..2b1a0713 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<entity> 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 )
{