diff options
author | Vas Crabb <vas@vastheman.com> | 2018-04-28 00:37:54 +1000 |
---|---|---|
committer | Vas Crabb <vas@vastheman.com> | 2018-04-28 00:37:54 +1000 |
commit | 47d93680d9006103291e991e4edae7b643f91d4b (patch) | |
tree | 884f1829ceeb3ab72c12c88ddde6c90575124952 /src/emu | |
parent | 5943373e917a7dec185dd1ecbddbf27a4febdc5c (diff) |
duh (nw)
Diffstat (limited to 'src/emu')
-rw-r--r-- | src/emu/mconfig.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/mconfig.cpp b/src/emu/mconfig.cpp index 8269fd9d688..c5ee4d92655 100644 --- a/src/emu/mconfig.cpp +++ b/src/emu/mconfig.cpp @@ -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()); |