summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/machine/fm_scsi.c
diff options
context:
space:
mode:
author smf- <smf-@users.noreply.github.com>2012-08-23 17:53:10 +0000
committer smf- <smf-@users.noreply.github.com>2012-08-23 17:53:10 +0000
commit45e9cc7826aeb0a01a94b3efe58e9130b2c81ec0 (patch)
tree1e6b79c468c85c112e461bbc52b3f70d7de3ce59 /src/mess/machine/fm_scsi.c
parent72fa59293f9a366a0a5b9b15b772cdde5a3998f6 (diff)
glacial SCSI improvements towards NSCSI and beyond, moved the SCSI id onto the device (nw)
Diffstat (limited to 'src/mess/machine/fm_scsi.c')
-rw-r--r--src/mess/machine/fm_scsi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mess/machine/fm_scsi.c b/src/mess/machine/fm_scsi.c
index 765d8884e43..388738e3f64 100644
--- a/src/mess/machine/fm_scsi.c
+++ b/src/mess/machine/fm_scsi.c
@@ -78,7 +78,8 @@ void fmscsi_device::device_start()
// initialise SCSI devices, if any present
for(x=0;x<scsidevs->devs_present;x++)
{
- m_SCSIdevices[scsidevs->devices[x].scsiID] = machine().device<scsidev_device>( scsidevs->devices[x].tag );
+ scsidev_device *device = machine().device<scsidev_device>( scsidevs->devices[x].tag );
+ m_SCSIdevices[device->GetDeviceID()] = device;
}
// allocate read timer