[Scummvm-cvs-logs] scummvm master -> 5a1fe83911495bc91e08a27d76e1db03719ec8ec
Strangerke
Strangerke at scummvm.org
Tue Dec 17 08:06:31 CET 2013
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
5a1fe83911 CGE: Fix check on file handlers
Commit: 5a1fe83911495bc91e08a27d76e1db03719ec8ec
https://github.com/scummvm/scummvm/commit/5a1fe83911495bc91e08a27d76e1db03719ec8ec
Author: Strangerke (strangerke at scummvm.org)
Date: 2013-12-16T23:06:03-08:00
Commit Message:
CGE: Fix check on file handlers
Changed paths:
engines/cge/fileio.cpp
diff --git a/engines/cge/fileio.cpp b/engines/cge/fileio.cpp
index 609d5e8..c08cb43 100644
--- a/engines/cge/fileio.cpp
+++ b/engines/cge/fileio.cpp
@@ -70,7 +70,7 @@ ResourceManager::ResourceManager() {
_catFile = new Common::File();
_catFile->open(kCatName);
- if ((!_datFile) || (!_catFile))
+ if (!_datFile->isOpen() || !_catFile->isOpen())
error("Unable to open data files");
for (int i = 0; i < kBtLevel; i++) {
More information about the Scummvm-git-logs
mailing list