diff --git a/src/saveload/oldloader.cpp b/src/saveload/oldloader.cpp index 4440cfd28f..9fea7ac4d8 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));