aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMax Horn2009-07-14 08:36:06 +0000
committerMax Horn2009-07-14 08:36:06 +0000
commitdbf968b49e44cc6e0ddf5b04ba2bf1396c42cb59 (patch)
tree6b7e2a11bdd2d441cfd60a93341f0b51591e332f /engines
parent5913895ecc32b630a9645eb985940bf57f10d0e7 (diff)
downloadscummvm-rg350-dbf968b49e44cc6e0ddf5b04ba2bf1396c42cb59.tar.gz
scummvm-rg350-dbf968b49e44cc6e0ddf5b04ba2bf1396c42cb59.tar.bz2
scummvm-rg350-dbf968b49e44cc6e0ddf5b04ba2bf1396c42cb59.zip
TINSEL: Don't use ioFailed to check if a file was opened succesfuly
svn-id: r42468
Diffstat (limited to 'engines')
-rw-r--r--engines/tinsel/handle.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/tinsel/handle.cpp b/engines/tinsel/handle.cpp
index 9a0e1f37f8..5ef5bea702 100644
--- a/engines/tinsel/handle.cpp
+++ b/engines/tinsel/handle.cpp
@@ -207,9 +207,7 @@ void OpenCDGraphFile(void) {
// As the theory goes, the right CD will be in there!
- cdGraphStream.clearIOFailed();
- cdGraphStream.open(szCdPlayFile);
- if (cdGraphStream.ioFailed())
+ if (!cdGraphStream.open(szCdPlayFile))
error(CANNOT_FIND_FILE, szCdPlayFile);
}