From dbf968b49e44cc6e0ddf5b04ba2bf1396c42cb59 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Tue, 14 Jul 2009 08:36:06 +0000 Subject: TINSEL: Don't use ioFailed to check if a file was opened succesfuly svn-id: r42468 --- engines/tinsel/handle.cpp | 4 +--- 1 file changed, 1 insertion(+), 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); } -- cgit v1.2.3