mirror of
https://github.com/holub/mame
synced 2025-04-26 18:23:08 +03:00
Fix indeterminate order of calls.
This commit is contained in:
parent
d4eaf26045
commit
580b29ee33
@ -345,8 +345,9 @@ void running_machine::start()
|
||||
device_t &running_machine::add_dynamic_device(device_t &owner, device_type type, const char *tag, UINT32 clock)
|
||||
{
|
||||
// allocate and append this device
|
||||
astring tempstring;
|
||||
device_t &device = const_cast<device_list &>(devicelist()).append(owner.subtag(tempstring, tag), *type(m_config, owner.subtag(tempstring, tag), &owner, clock));
|
||||
astring fulltag;
|
||||
owner.subtag(fulltag, tag);
|
||||
device_t &device = const_cast<device_list &>(devicelist()).append(fulltag, *type(m_config, fulltag, &owner, clock));
|
||||
|
||||
// append any machine config additions from new devices
|
||||
for (device_t *curdevice = devicelist().first(); curdevice != NULL; curdevice = curdevice->next())
|
||||
|
Loading…
Reference in New Issue
Block a user