diff --git a/src/emu/device.h b/src/emu/device.h index fbe3fbaff0b..b4fbd163cb3 100644 --- a/src/emu/device.h +++ b/src/emu/device.h @@ -768,6 +768,9 @@ inline device_t *device_t::siblingdevice(const char *tag) const // empty string or NULL means this device if (tag == NULL || *tag == 0) return const_cast(this); + + // leading caret implies the owner, just skip it + if (tag[0] == '^') tag++; // query relative to the parent return (m_owner != NULL) ? m_owner->subdevice(tag) : NULL;