1
0
Fork 0

(svn r15634) -Fix (r15632): some compilers seem to warn about the return value of fscanf.

release/0.7
rubidium 2009-03-07 17:57:54 +00:00
parent d1a9fcc67f
commit 0d2d5565a6
1 changed files with 2 additions and 1 deletions

View File

@ -545,8 +545,9 @@ public:
if (f == NULL) return false; if (f == NULL) return false;
ScenarioIdentifier id; ScenarioIdentifier id;
fscanf(f, "%i", &id.scenid); int fret = fscanf(f, "%i", &id.scenid);
FioFCloseFile(f); FioFCloseFile(f);
if (fret != 1) return false;
Md5 checksum; Md5 checksum;
uint8 buffer[1024]; uint8 buffer[1024];