aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorDavid Corrales2007-06-16 17:41:31 +0000
committerDavid Corrales2007-06-16 17:41:31 +0000
commitfe4ee4740d76b0aee2032814095f1d2b81dbde14 (patch)
treecd470b483f5c6d08b393b5120ddc27030ee619c8 /common
parentf7ea7e666da6e484577d0341fb0331dff75c69f7 (diff)
downloadscummvm-rg350-fe4ee4740d76b0aee2032814095f1d2b81dbde14.tar.gz
scummvm-rg350-fe4ee4740d76b0aee2032814095f1d2b81dbde14.tar.bz2
scummvm-rg350-fe4ee4740d76b0aee2032814095f1d2b81dbde14.zip
Small bugfix. Wrong logical operator.
svn-id: r27474
Diffstat (limited to 'common')
-rw-r--r--common/file.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/file.cpp b/common/file.cpp
index 0df575ac82..238c3a4bb3 100644
--- a/common/file.cpp
+++ b/common/file.cpp
@@ -415,7 +415,7 @@ bool File::exists(const String &filename) {
// FIXME: can't use isValid() here since at the time of writing
// FilesystemNode is to be unable to find for example files
// added in extrapath
- if (file.isDirectory() && !file.exists())
+ if (file.isDirectory() || !file.exists())
return false;
// Next, try to locate the file by *opening* it in read mode. This has