Core/DB: Some DB improvements

This commit is contained in:
hondacrx
2018-05-22 11:05:16 -04:00
parent 0be2dc08e2
commit dbd62e5c6f
23 changed files with 360 additions and 294 deletions
+6 -3
View File
@@ -38,10 +38,13 @@ namespace Game.BlackMarket
var bonusListIDsTok = new StringArray(fields.Read<string>(7), ' ');
List<uint> bonusListIDs = new List<uint>();
foreach (string token in bonusListIDsTok)
if (!bonusListIDsTok.IsEmpty())
{
if (uint.TryParse(token, out uint id))
bonusListIDs.Add(id);
foreach (string token in bonusListIDsTok)
{
if (uint.TryParse(token, out uint id))
bonusListIDs.Add(id);
}
}
if (!bonusListIDs.Empty())