fixs a index out of bounds crash

This commit is contained in:
Madpeterz 2021-01-17 11:24:20 +00:00
parent f097705b6a
commit 0bfe466bbd

View file

@ -255,7 +255,7 @@ namespace BSB.bottypes
while ((tested_sims.Count() != myconfig.Basic_HomeRegions.Length) && (UseSLurl == ""))
{
last_tested_home_id++;
if (last_tested_home_id > myconfig.Basic_HomeRegions.Length)
if (last_tested_home_id >= myconfig.Basic_HomeRegions.Length)
{
last_tested_home_id = 0;
}