From 4af9a92f767bd045b989b12e9ae70a2bec7664cc Mon Sep 17 00:00:00 2001 From: radius Date: Tue, 9 May 2017 22:10:46 -0500 Subject: [PATCH] fix 3829 --- tasks/task_save.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/task_save.c b/tasks/task_save.c index 03a6c34a8d..fafaddf27d 100644 --- a/tasks/task_save.c +++ b/tasks/task_save.c @@ -1139,7 +1139,7 @@ bool content_save_state(const char *path, bool save_to_disk, bool autosave) { 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 to allow undo_save_state() to work */