Commits

spencercw committed 74b108d

Fix assertion failure when a register variable is optimised out caused by an empty string being placed into the registers list.

Comments (0)

Files changed (1)

gb_emulator/src/cdb_file.cpp

 		if (results[12].matched)
 		{
 			string registers = results[12].str();
-			boost::split(symbol->registers, registers, is_any_of(","), token_compress_on);
+			if (!registers.empty())
+			{
+				boost::split(symbol->registers, registers, is_any_of(","), token_compress_on);
+			}
 		}
 	}