summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Robbbert <Robbbert@users.noreply.github.com>2020-10-10 20:26:10 +1100
committer Robbbert <Robbbert@users.noreply.github.com>2020-10-10 20:26:10 +1100
commit6b72729762c2db4d925464f716a78c31aec98580 (patch)
tree0f38cea9b2b6999d4e09a23e0127b3d8904025c2
parentecf98318b462f6bcc3aed41464c1d0b9d96954d5 (diff)
kaypro: fixed crash with omni2
-rw-r--r--src/mame/machine/kaypro.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mame/machine/kaypro.cpp b/src/mame/machine/kaypro.cpp
index decc44dd4c7..dd6327e2341 100644
--- a/src/mame/machine/kaypro.cpp
+++ b/src/mame/machine/kaypro.cpp
@@ -78,7 +78,8 @@ void kaypro_state::kayproiv_pio_system_w(u8 data)
kayproii_pio_system_w(data);
/* side select */
- m_floppy->ss_w(BIT(data, 2));
+ if (m_floppy)
+ m_floppy->ss_w(BIT(data, 2));
}
/***********************************************************