diff options
Diffstat (limited to 'engines/mads/scene_data.cpp')
-rw-r--r-- | engines/mads/scene_data.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/mads/scene_data.cpp b/engines/mads/scene_data.cpp index 4c19202f4b..f92ff86798 100644 --- a/engines/mads/scene_data.cpp +++ b/engines/mads/scene_data.cpp @@ -98,7 +98,7 @@ SceneInfo *SceneInfo::init(MADSEngine *vm) { } } -void SceneInfo::load(int sceneId, int v1, const Common::String &resName, +void SceneInfo::load(int sceneId, int variant, const Common::String &resName, int flags, MSurface &depthSurface, MSurface &bgSurface) { bool sceneFlag = sceneId >= 0; @@ -180,7 +180,7 @@ void SceneInfo::load(int sceneId, int v1, const Common::String &resName, } // Load the depth surface with the scene codes - Common::SeekableReadStream *depthStream = infoPack.getItemStream(1); + Common::SeekableReadStream *depthStream = infoPack.getItemStream(variant + 1); loadCodes(depthSurface, depthStream); delete depthStream; |