diff options
-rw-r--r-- | engines/sci/resource.cpp | 2 | ||||
-rw-r--r-- | engines/sci/resource.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/resource.cpp b/engines/sci/resource.cpp index fb601c7f82..80b3108988 100644 --- a/engines/sci/resource.cpp +++ b/engines/sci/resource.cpp @@ -1525,7 +1525,7 @@ int Resource::readResourceInfo(Common::SeekableReadStream *file, ResourceType type; ResourceManager *resMan = g_sci->getResMan(); - switch (resMan->_volVersion) { + switch (resMan->getVolVersion()) { case kResVersionSci0Sci1Early: case kResVersionSci1Middle: w = file->readUint16LE(); diff --git a/engines/sci/resource.h b/engines/sci/resource.h index 4b391cf6cd..d2dff8f58d 100644 --- a/engines/sci/resource.h +++ b/engines/sci/resource.h @@ -228,7 +228,6 @@ enum ResVersion { class ResourceManager { // FIXME: These 'friend' declarations are meant to be a temporary hack to // ease transition to the ResourceSource class system. - friend class Resource; // For _volVersion friend class ResourceSource; friend class DirectoryResourceSource; friend class PatchResourceSource; @@ -301,6 +300,7 @@ public: ViewType getViewType() const { return _viewType; } const char *getMapVersionDesc() const { return versionDescription(_mapVersion); } const char *getVolVersionDesc() const { return versionDescription(_volVersion); } + ResVersion getVolVersion() const { return _volVersion; } /** * Adds the appropriate GM patch from the Sierra MIDI utility as 4.pat, without |