Fix auto save state when state file does not already exist (#16084)

Co-authored-by: Daniel Byon <daniel@danielbyon.com>
This commit is contained in:
Daniel Byon 2024-01-07 16:59:59 -08:00 committed by GitHub
parent 773a2750cd
commit fc10539f3c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);