mirror of
https://github.com/holub/mame
synced 2025-04-22 08:22:15 +03:00
mz700: mz800 This should fix crash in debug build (nw)
This commit is contained in:
parent
9a3651fa1c
commit
e90a2aab47
@ -70,8 +70,9 @@ DRIVER_INIT_MEMBER(mz_state,mz800)
|
||||
m_cgram = std::make_unique<UINT8[]>(0x1000);
|
||||
memset(m_cgram.get(), 0, sizeof(UINT8) * 0x1000);
|
||||
|
||||
m_p_chargen = memregion("cgrom")->base();
|
||||
if (!m_p_chargen)
|
||||
if (memregion("cgrom"))
|
||||
m_p_chargen = memregion("cgrom")->base();
|
||||
else
|
||||
m_p_chargen = m_cgram.get();
|
||||
UINT8 *rom = memregion("monitor")->base();
|
||||
UINT8 *ram = m_ram->pointer();
|
||||
|
Loading…
Reference in New Issue
Block a user