diff options
author | ASpoonPlaysGames <66967891+ASpoonPlaysGames@users.noreply.github.com> | 2022-01-20 18:51:10 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-20 15:51:10 -0300 |
commit | 30b25594c1bd5cfcd8aaa56c187f52deaae442a5 (patch) | |
tree | 4446f9a41473cbcc05fc7baafd2aa850b257d0d2 /Northstar.CustomServers/mod/scripts/vscripts/mp | |
parent | 0a169db4ab3db1f05f3a95b73e3b55f0268239c5 (diff) | |
download | NorthstarMods-30b25594c1bd5cfcd8aaa56c187f52deaae442a5.tar.gz NorthstarMods-30b25594c1bd5cfcd8aaa56c187f52deaae442a5.zip |
Fix DecideSpawnZone_Generic crash (#143)
Diffstat (limited to 'Northstar.CustomServers/mod/scripts/vscripts/mp')
-rw-r--r-- | Northstar.CustomServers/mod/scripts/vscripts/mp/spawn.nut | 2 |
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 ) { |