summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-03-07 17:57:54 +0000
committerrubidium <rubidium@openttd.org>2009-03-07 17:57:54 +0000
commit0d2d5565a60e6d5d67e0ab5ba5af17477b92a321 (patch)
tree4f019d14bb3e169423c135d54b80ccfabd179792 /src
parentd1a9fcc67f0c30f15a9924fccd897d8ebd6de268 (diff)
downloadopenttd-0d2d5565a60e6d5d67e0ab5ba5af17477b92a321.tar.xz
(svn r15634) -Fix (r15632): some compilers seem to warn about the return value of fscanf.
Diffstat (limited to 'src')
-rw-r--r--src/fios.cpp3
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];