finder_base::DUMMY_TAG should be treated as magic (nw)

This commit is contained in:
Vas Crabb 2019-01-13 01:42:16 +11:00
parent cc659c222f
commit 36450e02cd

View File

@ -83,7 +83,7 @@ void cpc_expansion_slot_device::device_start()
void cpc_expansion_slot_device::device_config_complete() void cpc_expansion_slot_device::device_config_complete()
{ {
// for passthrough connectors, use the parent slot's CPU tag // for passthrough connectors, use the parent slot's CPU tag
if (strcmp(m_cpu.finder_tag(), finder_base::DUMMY_TAG) == 0 && dynamic_cast<device_cpc_expansion_card_interface *>(owner()) != nullptr) if ((m_cpu.finder_tag() == finder_base::DUMMY_TAG) && (dynamic_cast<device_cpc_expansion_card_interface *>(owner()) != nullptr))
{ {
auto parent = dynamic_cast<cpc_expansion_slot_device *>(owner()->owner()); auto parent = dynamic_cast<cpc_expansion_slot_device *>(owner()->owner());
if (parent != nullptr) if (parent != nullptr)