Merge pull request #4896 from fr500/master

fix #3829 & #4820
This commit is contained in:
Twinaphex 2017-05-10 05:44:17 +02:00 committed by GitHub
commit a44318dae5

View File

@ -1139,7 +1139,7 @@ bool content_save_state(const char *path, bool save_to_disk, bool autosave)
{ {
if (save_to_disk) if (save_to_disk)
{ {
if (path_file_exists(path)) if (path_file_exists(path) && !autosave)
{ {
/* Before overwritting the savestate file, load it into a buffer /* Before overwritting the savestate file, load it into a buffer
to allow undo_save_state() to work */ to allow undo_save_state() to work */