mirror of
https://github.com/holub/mame
synced 2025-04-25 01:40:16 +03:00
snes: Fix crash when no cartridge has been loaded
This commit is contained in:
parent
d84f01e388
commit
1c11b78524
@ -225,7 +225,8 @@ base_sns_cart_slot_device::~base_sns_cart_slot_device()
|
||||
void base_sns_cart_slot_device::device_start()
|
||||
{
|
||||
m_cart = dynamic_cast<device_sns_cart_interface *>(get_card_device());
|
||||
m_cart->m_slot = this;
|
||||
if (m_cart != nullptr)
|
||||
m_cart->m_slot = this;
|
||||
|
||||
m_irq_callback.resolve_safe();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user