diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/saveload/oldloader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/saveload/oldloader.cpp b/src/saveload/oldloader.cpp index 4440cfd28..9fea7ac4d 100644 --- a/src/saveload/oldloader.cpp +++ b/src/saveload/oldloader.cpp @@ -1603,9 +1603,9 @@ void GetOldSaveGameName(const char *path, const char *file, char *title, const c temp[0] = '\0'; // name is nul-terminated in savegame ... if (f == NULL) { - *title = '\0' + *title = '\0'; return; - ] + } bool broken = (fread(temp, 1, HEADER_SIZE, f) != HEADER_SIZE || !VerifyOldNameChecksum(temp)); |