aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/scene_data.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2014-09-06 17:55:01 -0400
committerPaul Gilbert2014-09-06 17:55:01 -0400
commit94068dddf7af94e3d9d784056b310f16f000db92 (patch)
tree4db1cb7005a6fe4d9265bd2fafb1a9e7c7ffa88b /engines/mads/scene_data.cpp
parent5e099e90bcdfb87c289b919ddac60e60fbf6bdd7 (diff)
downloadscummvm-rg350-94068dddf7af94e3d9d784056b310f16f000db92.tar.gz
scummvm-rg350-94068dddf7af94e3d9d784056b310f16f000db92.tar.bz2
scummvm-rg350-94068dddf7af94e3d9d784056b310f16f000db92.zip
MADS: Properly free menu items when main menu is freed
Diffstat (limited to 'engines/mads/scene_data.cpp')
-rw-r--r--engines/mads/scene_data.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/mads/scene_data.cpp b/engines/mads/scene_data.cpp
index 66848ca939..174579a624 100644
--- a/engines/mads/scene_data.cpp
+++ b/engines/mads/scene_data.cpp
@@ -232,11 +232,11 @@ void SceneInfo::load(int sceneId, int variant, const Common::String &resName,
infoFile.close();
if (_vm->getGameID() == GType_RexNebular) {
- loadMadsV1Background(sceneId, resName, flags, bgSurface);
- loadPalette(sceneId, _artFileNum, resName, flags, bgSurface);
+ loadMadsV1Background(_sceneId, resName, flags, bgSurface);
+ loadPalette(_sceneId, _artFileNum, resName, flags, bgSurface);
} else {
- loadMadsV2Background(sceneId, resName, flags, bgSurface);
- loadPalette(sceneId, sceneId, resName, flags, bgSurface);
+ loadMadsV2Background(_sceneId, resName, flags, bgSurface);
+ loadPalette(_sceneId, _sceneId, resName, flags, bgSurface);
}
Common::Array<SpriteAsset *> spriteSets;