Skip to content

Commit

Permalink
Fix auto save state when state file does not already exist
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Byon committed Jan 7, 2024
1 parent 398ace3 commit 22c4ce5
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 22c4ce5

Please sign in to comment.