summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/devintrf.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/devintrf.h')
-rw-r--r--src/emu/devintrf.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/emu/devintrf.h b/src/emu/devintrf.h
index fd2e7b10350..9ec09ea9186 100644
--- a/src/emu/devintrf.h
+++ b/src/emu/devintrf.h
@@ -509,7 +509,8 @@ inline device_config *device_config::typenext() const
// create a tag for an object that is owned by this device
inline astring &device_config::subtag(astring &dest, const char *_tag) const
{
- return (this != NULL) ? dest.cpy(m_tag).cat(":").cat(_tag) : dest.cpy(_tag);
+ // temp. for now: don't include the root tag in the full tag name
+ return (this != NULL && m_owner != NULL) ? dest.cpy(m_tag).cat(":").cat(_tag) : dest.cpy(_tag);
}
// create a tag for an object that a sibling to this device