summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/addrmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/addrmap.c')
-rw-r--r--src/emu/addrmap.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/emu/addrmap.c b/src/emu/addrmap.c
index 4453da2668f..83bcbaaadac 100644
--- a/src/emu/addrmap.c
+++ b/src/emu/addrmap.c
@@ -490,8 +490,7 @@ void address_map::uplift_submaps(running_machine &machine, device_t &device, dev
{
if (entry->m_read.m_type == AMH_DEVICE_SUBMAP)
{
- astring tag;
- owner.subtag(tag, entry->m_read.m_tag);
+ std::string tag = owner.subtag(entry->m_read.m_tag);
device_t *mapdevice = machine.device(tag.c_str());
if (mapdevice == NULL) {
throw emu_fatalerror("Attempted to submap a non-existent device '%s' in space %d of device '%s'\n", tag.c_str(), m_spacenum, device.basetag());