Null really is an issue, but it's good now

This commit is contained in:
Matt Nadareski
2016-05-09 11:12:26 -07:00
parent adffdb688f
commit 3bf610517e

View File

@@ -247,7 +247,7 @@ namespace SabreTools.Helper
state += (old ? ")\n" : "\t</machine>\n");
}
if (lastgame.ToLowerInvariant() != rom.Game.ToLowerInvariant())
if (lastgame == null || lastgame.ToLowerInvariant() != rom.Game.ToLowerInvariant())
{
state += (old ? "game (\n\tname \"" + rom.Game + "\"\n" +
"\tdescription \"" + rom.Game + "\"\n" :