aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/dataio.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/gob/dataio.cpp')
-rw-r--r--engines/gob/dataio.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/gob/dataio.cpp b/engines/gob/dataio.cpp
index 58a62ed564..a37586aee6 100644
--- a/engines/gob/dataio.cpp
+++ b/engines/gob/dataio.cpp
@@ -215,9 +215,7 @@ int16 DataIO::file_open(const char *path) {
if (i == MAX_FILES)
return -1;
- file_getHandle(i)->open(path);
-
- if (file_getHandle(i)->isOpen())
+ if (file_getHandle(i)->open(path))
return i;
return -1;