Fix crasher caused by new astring operators (original code

was buggy, but didn't crash before).
This commit is contained in:
Aaron Giles 2010-08-19 19:59:16 +00:00
parent 05702c5f07
commit f5a217442a

View File

@ -650,7 +650,7 @@ static bool validate_gfx(int drivnum, const machine_config *config, region_array
for (rgnnum = 0; rgnnum < ARRAY_LENGTH(rgninfo->entries); rgnnum++) for (rgnnum = 0; rgnnum < ARRAY_LENGTH(rgninfo->entries); rgnnum++)
{ {
/* stop if we hit an empty */ /* stop if we hit an empty */
if (rgninfo->entries[rgnnum].tag == NULL) if (rgninfo->entries[rgnnum].tag.len() == 0)
{ {
mame_printf_error("%s: %s has gfx[%d] referencing non-existent region '%s'\n", driver->source_file, driver->name, gfxnum, region); mame_printf_error("%s: %s has gfx[%d] referencing non-existent region '%s'\n", driver->source_file, driver->name, gfxnum, region);
error = true; error = true;