diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/fios.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fios.cpp b/src/fios.cpp index 01c095aad..9d5db867a 100644 --- a/src/fios.cpp +++ b/src/fios.cpp @@ -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]; |