Skip to content

Commit

Permalink
Fix auto save state when state file does not already exist (#16084)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Byon <[email protected]>
  • Loading branch information
danielbyon and Daniel Byon authored Jan 8, 2024
1 parent 773a275 commit fc10539
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/task_save.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit fc10539

Please sign in to comment.