(svn r15146) -Fix: show savegame name even when opening it failed

This commit is contained in:
smatz 2009-01-18 23:33:57 +00:00
parent a337c47d4f
commit 0e83fb37c0

View File

@ -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));