From f5cbfbf6319780726ae29fd85a5def8ec38b99a3 Mon Sep 17 00:00:00 2001 From: Cameron Taylor Date: Tue, 30 Apr 2024 20:03:24 -0400 Subject: [PATCH] more save fixes --- source/funkin/Conductor.hx | 4 ++-- source/funkin/Preferences.hx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/funkin/Conductor.hx b/source/funkin/Conductor.hx index 0d84172a0..0d63cb6cc 100644 --- a/source/funkin/Conductor.hx +++ b/source/funkin/Conductor.hx @@ -253,7 +253,7 @@ class Conductor function get_inputOffset():Int { - return Save.instance.options.inputOffset; + return Save?.instance?.options?.inputOffset ?? 0; } function set_inputOffset(value:Int):Int @@ -265,7 +265,7 @@ class Conductor function get_audioVisualOffset():Int { - return Save.instance.options.audioVisualOffset; + return Save?.instance?.options?.audioVisualOffset ?? 0; } function set_audioVisualOffset(value:Int):Int diff --git a/source/funkin/Preferences.hx b/source/funkin/Preferences.hx index 54096f46f..b2050c6a2 100644 --- a/source/funkin/Preferences.hx +++ b/source/funkin/Preferences.hx @@ -72,7 +72,7 @@ class Preferences static function get_zoomCamera():Bool { - return Save.instance.options.zoomCamera; + return Save?.instance?.options?.zoomCamera; } static function set_zoomCamera(value:Bool):Bool