mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-12-04 20:53:57 +00:00
Fix crash when initializing screenshots when there is no save data
This commit is contained in:
parent
3b1f84b4bd
commit
dbae4aff8f
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue