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

Co-authored-by: Daniel Byon <daniel@danielbyon.com>
pull/16090/head
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
1 changed files with 1 additions and 1 deletions

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