mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-09-01 19:09:09 +00:00
(svn r15634) -Fix (r15632): some compilers seem to warn about the return value of fscanf.
This commit is contained in:
@@ -545,8 +545,9 @@ public:
|
||||
if (f == NULL) return false;
|
||||
|
||||
ScenarioIdentifier id;
|
||||
fscanf(f, "%i", &id.scenid);
|
||||
int fret = fscanf(f, "%i", &id.scenid);
|
||||
FioFCloseFile(f);
|
||||
if (fret != 1) return false;
|
||||
|
||||
Md5 checksum;
|
||||
uint8 buffer[1024];
|
||||
|
Reference in New Issue
Block a user