[DatFile] Add safety check on merging

This commit is contained in:
Matt Nadareski
2018-01-10 00:02:39 -08:00
parent 4768771d69
commit 2d3d38a7f1

View File

@@ -2917,6 +2917,12 @@ namespace SabreTools.Library.DatFiles
List<string> games = Keys;
foreach (string game in games)
{
// If the game has no items in it, we want to continue
if (this[game].Count == 0)
{
continue;
}
// Determine if the game has a parent or not
string parent = null;
if (!String.IsNullOrWhiteSpace(this[game][0].CloneOf))