Update GameStrings.cs

Closes #107
This commit is contained in:
Kurt
2020-04-23 10:23:41 -07:00
parent 6150d9e03d
commit 9e50b114ed

View File

@@ -54,8 +54,12 @@ public List<ComboItem> CreateItemDataSource(IReadOnlyCollection<KeyValuePair<ush
var map = new Dictionary<string, string>(arr.Count);
foreach (var kvp in arr)
{
var split = kvp.Split('\t');
map.Add(split[0], split[1]);
var index = kvp.IndexOf('\t');
if (index < 0)
continue;
var abbrev = kvp.Substring(0, index);
var name = kvp.Substring(index + 1);
map.Add(abbrev, name);
}
return map;
}