Blank games are still a pain

This commit is contained in:
Matt Nadareski
2016-05-09 09:53:56 -07:00
parent 5ad9a83b63
commit 07e41dba30

View File

@@ -236,13 +236,13 @@ namespace SabreTools.Helper
sw.Write((old ? header_old : header));
// Write out each of the machines and roms
string lastgame = "";
string lastgame = null;
foreach (List<RomData> roms in sortable.Values)
{
foreach (RomData rom in roms)
{
string state = "";
if (lastgame != "" && lastgame != rom.Game)
if (lastgame != null && lastgame != rom.Game)
{
state += (old ? ")\n" : "\t</machine>\n");
}