From 0bfe466bbdc552211ca0e84d1d816e73bed65109 Mon Sep 17 00:00:00 2001 From: Madpeterz <57852827+Madpeterz@users.noreply.github.com> Date: Sun, 17 Jan 2021 11:24:20 +0000 Subject: [PATCH] fixs a index out of bounds crash --- Core/bottypes/athome.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/bottypes/athome.cs b/Core/bottypes/athome.cs index d8c5cfe..954fd37 100644 --- a/Core/bottypes/athome.cs +++ b/Core/bottypes/athome.cs @@ -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; }