From 010b0a115358be58e8d63cf33d900ca1be01b877 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Sun, 8 May 2016 20:57:14 -0700 Subject: [PATCH] Empty game names are an issue --- SabreHelper/Output.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SabreHelper/Output.cs b/SabreHelper/Output.cs index 243a3de7..a9dd8d65 100644 --- a/SabreHelper/Output.cs +++ b/SabreHelper/Output.cs @@ -75,11 +75,11 @@ namespace SabreTools.Helper sw.Write((old ? header_old : header)); // Write out each of the machines and roms - string lastgame = ""; + string lastgame = null; foreach (RomData rom in roms) { string state = ""; - if (lastgame != "" && lastgame != rom.Game) + if (lastgame != null && lastgame != rom.Game) { state += (old ? ")\n" : "\t\n"); }