fixs a index out of bounds crash
This commit is contained in:
parent
f097705b6a
commit
0bfe466bbd
1 changed files with 1 additions and 1 deletions
|
|
@ -255,7 +255,7 @@ namespace BSB.bottypes
|
||||||
while ((tested_sims.Count() != myconfig.Basic_HomeRegions.Length) && (UseSLurl == ""))
|
while ((tested_sims.Count() != myconfig.Basic_HomeRegions.Length) && (UseSLurl == ""))
|
||||||
{
|
{
|
||||||
last_tested_home_id++;
|
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;
|
last_tested_home_id = 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue