From 614032198ec33c11c6b454f1ce9ce06a0de03b45 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Tue, 18 Feb 2020 22:58:37 -0500 Subject: [PATCH] Ensures no divide by zero during initial construction. --- Storage/Disk/Drive.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Storage/Disk/Drive.hpp b/Storage/Disk/Drive.hpp index 573e7b363..386e9ac6b 100644 --- a/Storage/Disk/Drive.hpp +++ b/Storage/Disk/Drive.hpp @@ -205,7 +205,7 @@ class Drive: public ClockingHint::Source, public TimedEventLoop { // Contains the multiplier that converts between track-relative lengths // to real-time lengths. So it's the reciprocal of rotation speed. - float rotational_multiplier_; + float rotational_multiplier_ = 1.0f; // A count of time since the index hole was last seen. Which is used to // determine how far the drive is into a full rotation when switching to