From dbae4aff8fde2621c370388c72e003f3fd4e7027 Mon Sep 17 00:00:00 2001 From: EliteMasterEric Date: Mon, 29 Apr 2024 19:28:47 -0400 Subject: [PATCH] Fix crash when initializing screenshots when there is no save data --- source/funkin/Preferences.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/funkin/Preferences.hx b/source/funkin/Preferences.hx index d8066c581..c4bda2b9a 100644 --- a/source/funkin/Preferences.hx +++ b/source/funkin/Preferences.hx @@ -53,7 +53,7 @@ class Preferences static function get_flashingLights():Bool { - return Save.instance.options.flashingLights; + return Save?.instance?.options?.flashingLights ?? true; } static function set_flashingLights(value:Bool):Bool