summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess
diff options
context:
space:
mode:
author mahlemiut <mahlemiut@users.noreply.github.com>2013-05-05 23:29:36 +0000
committer mahlemiut <mahlemiut@users.noreply.github.com>2013-05-05 23:29:36 +0000
commit579de8a42882ae10ca1b66d35a30a19ad5a1afbb (patch)
tree02b233e2cc8c8ee091a9c254930c5d1bdfbdb95e /src/mess
parent78ff8075b55893f8ae2a0a6eae87e371894e8e34 (diff)
fmtowns: fixed RAM regression. (no whatsnew)
Diffstat (limited to 'src/mess')
-rw-r--r--src/mess/drivers/fmtowns.c1
-rw-r--r--src/mess/includes/fmtowns.h3
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mess/drivers/fmtowns.c b/src/mess/drivers/fmtowns.c
index 7e9f30b6bdf..ed3a78d733a 100644
--- a/src/mess/drivers/fmtowns.c
+++ b/src/mess/drivers/fmtowns.c
@@ -2618,7 +2618,6 @@ void towns_state::machine_reset()
m_cdrom = machine().device<cdrom_image_device>("cdrom");
m_cdda = machine().device("cdda");
m_scsi = machine().device<fmscsi_device>("scsi:fm");
- m_ram = m_ram;
m_ftimer = 0x00;
m_freerun_timer = 0x00;
m_nmi_mask = 0x00;
diff --git a/src/mess/includes/fmtowns.h b/src/mess/includes/fmtowns.h
index 201dcafad01..f37487ca89f 100644
--- a/src/mess/includes/fmtowns.h
+++ b/src/mess/includes/fmtowns.h
@@ -80,6 +80,7 @@ class towns_state : public driver_device
: driver_device(mconfig, type, tag),
m_maincpu(*this, "maincpu"),
m_speaker(*this, "speaker"),
+ m_ram(*this, RAM_TAG),
m_nvram(*this, "nvram"),
m_nvram16(*this, "nvram16")
{ }
@@ -97,7 +98,7 @@ class towns_state : public driver_device
device_t* m_cdda;
required_device<speaker_sound_device> m_speaker;
class fmscsi_device* m_scsi;
- ram_device* m_ram;
+ required_device<ram_device> m_ram;
UINT16 m_ftimer;
UINT16 m_freerun_timer;