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