From fc10539f3c5742d520fecf297be5a2cdde890737 Mon Sep 17 00:00:00 2001 From: Daniel Byon <327737+danielbyon@users.noreply.github.com> Date: Sun, 7 Jan 2024 16:59:59 -0800 Subject: [PATCH] Fix auto save state when state file does not already exist (#16084) Co-authored-by: Daniel Byon --- tasks/task_save.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/task_save.c b/tasks/task_save.c index 3ea802ef9c8f..b7c42163cbe5 100644 --- a/tasks/task_save.c +++ b/tasks/task_save.c @@ -1332,7 +1332,7 @@ bool content_auto_save_state(const char *path) serial_size = core_serialize_size(); - if (serial_size == 0 || !path_is_valid(path)) + if (serial_size == 0) return false; serial_data = content_get_serialized_data(&serial_size);