mirror of
https://github.com/mamedev/mame.git
synced 2024-11-18 10:06:19 +01:00
(MESS) fixed gameboy crash on exit when mounted cart wasn't valid (nw)
This commit is contained in:
parent
2558a614e8
commit
347cb338f8
1 changed files with 1 additions and 1 deletions
|
@ -415,7 +415,7 @@ bool megaduck_cart_slot_device::call_load()
|
|||
|
||||
void base_gb_cart_slot_device::call_unload()
|
||||
{
|
||||
if (m_cart->get_ram_size() && m_cart->get_has_battery())
|
||||
if (m_cart && m_cart->get_ram_size() && m_cart->get_has_battery())
|
||||
battery_save(m_cart->get_ram_base(), m_cart->get_ram_size());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue