[DatFile] Fix fully non-merged creation

This commit is contained in:
Matt Nadareski
2017-02-03 01:03:54 -08:00
parent f8db7047c1
commit 7574da4ebd

View File

@@ -590,7 +590,7 @@ namespace SabreTools.Helper.Dats
foreach (string game in games) foreach (string game in games)
{ {
// If the game has no devices, we continue // If the game has no devices, we continue
if (this[game][0].Machine.Devices.Count == 0) if (this[game][0].Machine.Devices == null || this[game][0].Machine.Devices.Count == 0)
{ {
continue; continue;
} }