mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
(svn r15146) -Fix: show savegame name even when opening it failed
This commit is contained in:
parent
a337c47d4f
commit
0e83fb37c0
@ -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));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user