mirror of
https://github.com/holub/mame
synced 2025-04-22 00:11:58 +03:00
duh (nw)
This commit is contained in:
parent
5943373e91
commit
47d93680d9
@ -128,7 +128,7 @@ device_t *machine_config::device_add(device_t *owner, const char *tag, device_ty
|
||||
}
|
||||
assert(tag[0] != '\0');
|
||||
|
||||
if (!owner)
|
||||
if (owner)
|
||||
{
|
||||
// allocate the new device and append it to the owner's list
|
||||
device_t *const device = &owner->subdevices().m_list.append(*type(*this, tag, owner, clock).release());
|
||||
|
Loading…
Reference in New Issue
Block a user