diff options
-rw-r--r-- | engines/m4/scene.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/m4/scene.cpp b/engines/m4/scene.cpp index ccdb60fc66..673a375fa2 100644 --- a/engines/m4/scene.cpp +++ b/engines/m4/scene.cpp @@ -926,8 +926,8 @@ void MadsScene::loadPlayerSprites(const char *prefix) { /*--------------------------------------------------------------------------*/ -void MadsSceneInfo::load(int sceneId) { - const char *sceneInfoStr = MADSResourceManager::getResourceName(RESPREFIX_RM, sceneId, ".DAT"); +void MadsSceneInfo::load(int sId) { + const char *sceneInfoStr = MADSResourceManager::getResourceName(RESPREFIX_RM, sId, ".DAT"); Common::SeekableReadStream *rawStream = _vm->_resourceManager->get(sceneInfoStr); MadsPack sceneInfo(rawStream); @@ -935,7 +935,7 @@ void MadsSceneInfo::load(int sceneId) { Common::SeekableReadStream *stream = sceneInfo.getItemStream(0); int resSceneId = stream->readUint16LE(); - assert(resSceneId == sceneId); + assert(resSceneId == sId); artFileNum = stream->readUint16LE(); field_4 = stream->readUint16LE(); |