diff --git a/OpenRA.Mods.Common/Widgets/Logic/TabCompletionLogic.cs b/OpenRA.Mods.Common/Widgets/Logic/TabCompletionLogic.cs index 0589daea61..fcc5b490e3 100644 --- a/OpenRA.Mods.Common/Widgets/Logic/TabCompletionLogic.cs +++ b/OpenRA.Mods.Common/Widgets/Logic/TabCompletionLogic.cs @@ -31,7 +31,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic if (string.IsNullOrWhiteSpace(text)) return text; - if (lastCompleted == text) + if (lastCompleted == text && candidates.Any()) { lastCompleted = prefix + candidates[++currentCandidateIndex % candidates.Count] + suffix; return lastCompleted;