mirror of
https://github.com/holub/mame
synced 2025-04-22 16:31:49 +03:00
(MESS) fix null reference exception when using d9060/d9090
This commit is contained in:
parent
5c09b67cbb
commit
80ee39621f
@ -887,7 +887,7 @@ void scsibus_device::device_start()
|
||||
for (int devno = 0; devno < scsidevs->devs_present; devno++)
|
||||
{
|
||||
LOG(1,"SCSIBUS:init devno=%d \n",devno);
|
||||
scsidev_device *scsidev = machine().device<scsidev_device>( scsidevs->devices[devno].tag );
|
||||
scsidev_device *scsidev = owner()->subdevice<scsidev_device>( scsidevs->devices[devno].tag );
|
||||
devices[scsidev->GetDeviceID()] = scsidev;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user