Changeset - r10811:68e4e551aa09
[Not reviewed]
master
0 1 0
smatz - 16 years ago 2009-01-18 23:33:57
smatz@openttd.org
(svn r15146) -Fix: show savegame name even when opening it failed
1 file changed with 4 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/saveload/oldloader.cpp
Show inline comments
 
@@ -1602,7 +1602,10 @@ void GetOldSaveGameName(const char *path
 
	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));
 

	
0 comments (0 inline, 0 general)