Skip to content

Commit

Permalink
0 indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
ASpoonPlaysGames committed Nov 18, 2023
1 parent 8cb64d8 commit 45c95d6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down

0 comments on commit 45c95d6

Please sign in to comment.