mirror of
https://github.com/holub/mame
synced 2025-10-08 09:30:17 +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');
|
assert(tag[0] != '\0');
|
||||||
|
|
||||||
if (!owner)
|
if (owner)
|
||||||
{
|
{
|
||||||
// allocate the new device and append it to the owner's list
|
// 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());
|
device_t *const device = &owner->subdevices().m_list.append(*type(*this, tag, owner, clock).release());
|
||||||
|
Loading…
Reference in New Issue
Block a user