[DatFile] Fix adding from devices

This commit is contained in:
Matt Nadareski
2017-12-21 10:34:09 -08:00
parent abe5c240ae
commit 6478e15605

View File

@@ -2796,6 +2796,12 @@ namespace SabreTools.Library.DatFiles
List<string> games = Keys;
foreach (string game in games)
{
// If the game doesn't have items, we continue
if (this[game] == null || this[game].Count == 0)
{
continue;
}
// If the game has no devices, we continue
if (this[game][0].Devices == null || this[game][0].Devices.Count == 0)
{