Fix crash when initializing screenshots when there is no save data
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user