It was pointed out to me that we can't use the DEMO variable here, because

the missing file may be the one with the resource for the global variables.

svn-id: r12112
This commit is contained in:
Torbjörn Andersson 2004-01-03 14:49:52 +00:00
parent 069c21310f
commit fa523f7f7e

View File

@ -431,7 +431,7 @@ uint8 *ResourceManager::openResource(uint32 res, bool dump) {
// playing a demo, then we're in trouble if the file
// can't be found!
if (DEMO || (_cdTab[parent_res_file] & LOCAL_PERM))
if ((_vm->_features & GF_DEMO) || (_cdTab[parent_res_file] & LOCAL_PERM))
error("Could not find '%s'", _resourceFiles[parent_res_file]);
getCd(_cdTab[parent_res_file] & 3);