pt68k4: Coverity 139050 (null reference)

This commit is contained in:
Robbbert 2021-03-03 16:26:11 +11:00
parent 8b1377dadf
commit 81dcb04c0f

View File

@ -361,6 +361,8 @@ void pt68k4_state::machine_reset()
floppy_image_device *floppy = m_floppy_connector[0] ? m_floppy_connector[0]->get_device() : nullptr;
m_wdfdc->set_floppy(floppy);
if (floppy)
floppy->ss_w(0);
m_lastdrive = 0;