From 83b996f577329495849c341eff6e907bc4e0f70d Mon Sep 17 00:00:00 2001 From: mahlemiut Date: Wed, 26 Feb 2014 22:38:51 +0000 Subject: [PATCH] fmtowns: fix debug assert (no whatsnew) --- src/mess/drivers/fmtowns.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/mess/drivers/fmtowns.c b/src/mess/drivers/fmtowns.c index a17f44e046a..15afe01dc43 100644 --- a/src/mess/drivers/fmtowns.c +++ b/src/mess/drivers/fmtowns.c @@ -22,8 +22,7 @@ released in 1993 - Issues: i386 protected mode is far from complete. - Video emulation is far from complete. + Issues: Video emulation is far from complete. */ @@ -218,8 +217,10 @@ void towns_state::init_serial_rom(running_machine &machine) // TODO: init serial ROM contents int x; static const UINT8 code[8] = { 0x04,0x65,0x54,0xA4,0x95,0x45,0x35,0x5F }; - UINT8* srom = m_serial->base(); + UINT8* srom = NULL; + if(m_serial) + srom = m_serial->base(); memset(m_towns_serial_rom,0,256/8); if(srom)