aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm
diff options
context:
space:
mode:
authorTorbjörn Andersson2015-02-07 21:55:24 +0100
committerTorbjörn Andersson2015-02-07 21:55:24 +0100
commita0661328b94f0d452995da4f91318d0952ab8346 (patch)
treebcb349949e5a2a5d3441347073c61361041079aa /engines/scumm
parent531029f54aa5381a72d5f08a2e31721932dcfaa0 (diff)
downloadscummvm-rg350-a0661328b94f0d452995da4f91318d0952ab8346.tar.gz
scummvm-rg350-a0661328b94f0d452995da4f91318d0952ab8346.tar.bz2
scummvm-rg350-a0661328b94f0d452995da4f91318d0952ab8346.zip
SCUMM: Fix detection of the DoTT Maniac Mansion easter egg target
It's the key, not the gameid, that is the proper target name. In my case, the key for that version of MM had the target name "maniac-old" and gameid "maniac" (can you tell I've messed around with this file a bit on my own?), so it tried to use "maniac" as the target, which happened to be the target name for the enhanced version instead.
Diffstat (limited to 'engines/scumm')
-rw-r--r--engines/scumm/scumm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/scumm/scumm.cpp b/engines/scumm/scumm.cpp
index 7d927b0cda..99b4e695bb 100644
--- a/engines/scumm/scumm.cpp
+++ b/engines/scumm/scumm.cpp
@@ -2612,7 +2612,7 @@ bool ScummEngine::startManiac() {
if (path.hasPrefix(currentPath)) {
path.erase(0, currentPath.size() + 1);
if (path.equalsIgnoreCase("maniac")) {
- maniacTarget = dom.getVal("gameid");
+ maniacTarget = iter->_key;
break;
}
}