From 720b68e23f907a3a43b063810e670b17ac89467e Mon Sep 17 00:00:00 2001 From: Aaron Culliney Date: Sun, 7 Dec 2014 14:24:09 -0800 Subject: [PATCH] Don't allow joy_step values < 1 --- Apple2Mac/Apple2Mac/Classes/OSX/EmulatorPrefsController.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Apple2Mac/Apple2Mac/Classes/OSX/EmulatorPrefsController.m b/Apple2Mac/Apple2Mac/Classes/OSX/EmulatorPrefsController.m index 7089e6e0..2069ee46 100644 --- a/Apple2Mac/Apple2Mac/Classes/OSX/EmulatorPrefsController.m +++ b/Apple2Mac/Apple2Mac/Classes/OSX/EmulatorPrefsController.m @@ -126,6 +126,10 @@ joy_auto_recenter = [defaults integerForKey:kApple2JoystickAutoRecenter]; [self.joystickRecenter setState:joy_auto_recenter ? NSOnState : NSOffState]; joy_step = [defaults integerForKey:kApple2JoystickStep]; + if (!joy_step) + { + joy_step = 1; + } [self.joystickStepLabel setIntegerValue:joy_step]; [self.joystickStepper setIntegerValue:joy_step]; #endif