mirror of
https://github.com/holub/mame
synced 2025-05-30 01:23:07 +03:00
fixed crash with -debug when image loading failed (nw)
This commit is contained in:
parent
bcdf3b9dba
commit
9c6a2d3705
@ -340,7 +340,7 @@ bool debug_comment_save(running_machine &machine)
|
||||
device_iterator iter(machine.root_device());
|
||||
bool found_comments = false;
|
||||
for (device_t *device = iter.first(); device != NULL; device = iter.next())
|
||||
if (device->debug()->comment_count() > 0)
|
||||
if (device->debug() && device->debug()->comment_count() > 0)
|
||||
{
|
||||
// create a node for this device
|
||||
xml_data_node *curnode = xml_add_child(systemnode, "cpu", NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user