From fe4ee4740d76b0aee2032814095f1d2b81dbde14 Mon Sep 17 00:00:00 2001 From: David Corrales Date: Sat, 16 Jun 2007 17:41:31 +0000 Subject: Small bugfix. Wrong logical operator. svn-id: r27474 --- common/file.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common') 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 -- cgit v1.2.3