diff options
Diffstat (limited to 'engines/sci')
-rw-r--r-- | engines/sci/resource.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/engines/sci/resource.cpp b/engines/sci/resource.cpp index dd9e5f54fd..c9faaf0231 100644 --- a/engines/sci/resource.cpp +++ b/engines/sci/resource.cpp @@ -985,7 +985,15 @@ int ResourceManager::readResourceMapSCI1(ResourceSource *map) { resId = RESOURCE_HASH(type, number); // adding new resource only if it does not exist if (_resMap.contains(resId) == false) { - res = new Resource; + switch (type) { + case kResourceTypeSync: + res = new ResourceSync; + break; + default: + res = new Resource; + break; + } + _resMap.setVal(resId, res); res->type = (ResourceType)type; res->number = number; |