diff options
-rw-r--r-- | src/saveload/oldloader.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/saveload/oldloader.cpp b/src/saveload/oldloader.cpp index 73aaa440b..4440cfd28 100644 --- a/src/saveload/oldloader.cpp +++ b/src/saveload/oldloader.cpp @@ -1602,7 +1602,10 @@ void GetOldSaveGameName(const char *path, const char *file, char *title, const c FILE *f = fopen(filename, "rb"); temp[0] = '\0'; // name is nul-terminated in savegame ... - if (f == NULL) return; + if (f == NULL) { + *title = '\0' + return; + ] bool broken = (fread(temp, 1, HEADER_SIZE, f) != HEADER_SIZE || !VerifyOldNameChecksum(temp)); |