From 45c95d6c42c84781eeb19cbfff5f5890eca52d9c Mon Sep 17 00:00:00 2001 From: ASpoonPlaysGames <66967891+ASpoonPlaysGames@users.noreply.github.com> Date: Sat, 18 Nov 2023 19:02:50 +0000 Subject: [PATCH] 0 indexing --- Northstar.CustomServers/mod/scripts/vscripts/sh_progression.nut | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Northstar.CustomServers/mod/scripts/vscripts/sh_progression.nut b/Northstar.CustomServers/mod/scripts/vscripts/sh_progression.nut index a2fc1e8ac..6d64457a4 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/sh_progression.nut +++ b/Northstar.CustomServers/mod/scripts/vscripts/sh_progression.nut @@ -422,7 +422,7 @@ void function ValidateEquippedItems( entity player ) } } - if ( selectedTitanLoadoutIndex < 0 || selectedTitanLoadoutIndex > NUM_PERSISTENT_TITAN_LOADOUTS ) + if ( selectedTitanLoadoutIndex < 0 || selectedTitanLoadoutIndex >= NUM_PERSISTENT_TITAN_LOADOUTS ) { printt( "- SELECTED TITAN CLASS IS INVALID, RESETTING" ) player.SetPersistentVar( "titanSpawnLoadout.index", 0 )