Skip to content

Commit

Permalink
CGE: Fix check on file handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
Strangerke committed Dec 17, 2013
1 parent ee34fce commit 5a1fe83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/cge/fileio.cpp
Expand Up @@ -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++) {
Expand Down

0 comments on commit 5a1fe83

Please sign in to comment.