summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2021-01-25 19:34:46 +0100
committer Olivier Galibert <galibert@pobox.com>2021-01-25 19:35:25 +0100
commit27f10776491589e2b9b447fab99a9dd08d1e2ac7 (patch)
tree207380e13cc2bb58ff89e3e6eb77a4b038e146d9
parentf0da5c4dd6a493d9c7015aa276a8ab0eb6617e87 (diff)
floppy: Be really sure a cleared cache is seen as such
-rw-r--r--src/devices/imagedev/floppy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/imagedev/floppy.cpp b/src/devices/imagedev/floppy.cpp
index bba469c9d93..e4634147843 100644
--- a/src/devices/imagedev/floppy.cpp
+++ b/src/devices/imagedev/floppy.cpp
@@ -925,7 +925,7 @@ attotime floppy_image_device::get_next_transition(const attotime &from_when)
if(!image || mon)
return attotime::never;
- if(from_when < cache_start_time || (!cache_end_time.is_never() && from_when >= cache_end_time))
+ if(from_when < cache_start_time || cache_start_time.is_zero() || (!cache_end_time.is_never() && from_when >= cache_end_time))
cache_fill(from_when);
if(!cache_weak)