From 285fb8e6144c8d54eaa35869960819d6eb1711d2 Mon Sep 17 00:00:00 2001 From: onpon4 Date: Sat, 9 Jan 2016 22:26:31 -0500 Subject: [PATCH] Made the Continue and Load options not appearing work again. This must have been screwed up a loooong time ago. Anyway, it now hides these menu options as it should when there is no autosave available. --- src/loadSave.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/loadSave.cpp b/src/loadSave.cpp index ef08e55..e03a45a 100644 --- a/src/loadSave.cpp +++ b/src/loadSave.cpp @@ -37,7 +37,7 @@ int initSaveSlots() Game tempGame; struct stat fileInfo; int modTime = 0; - int continueSaveIndex = 0; + int continueSaveIndex = -1; FILE *fp; @@ -58,6 +58,7 @@ int initSaveSlots() if (i == 0) { sprintf(saveSlot[i], "AUTOSAVE"); + continueSaveIndex = 0; } else { @@ -102,6 +103,7 @@ int initSaveSlots() if (i == 0) { sprintf(saveSlot[i], "AUTOSAVE"); + continueSaveIndex = 0; } else {