aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/myst_areas.cpp
diff options
context:
space:
mode:
authorBastien Bouclet2010-11-29 20:55:31 +0000
committerBastien Bouclet2010-11-29 20:55:31 +0000
commit34981c61b6c97281c6a7e4895d6ebbfdf97e00a6 (patch)
treeab69f63eb996233151163a253ea32de9f676c136 /engines/mohawk/myst_areas.cpp
parent92d74fa56df2583ad01616c2afa394baf2ea5a9f (diff)
downloadscummvm-rg350-34981c61b6c97281c6a7e4895d6ebbfdf97e00a6.tar.gz
scummvm-rg350-34981c61b6c97281c6a7e4895d6ebbfdf97e00a6.tar.bz2
scummvm-rg350-34981c61b6c97281c6a7e4895d6ebbfdf97e00a6.zip
MOHAWK: Fix Myst opcode 14
svn-id: r54616
Diffstat (limited to 'engines/mohawk/myst_areas.cpp')
-rw-r--r--engines/mohawk/myst_areas.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/engines/mohawk/myst_areas.cpp b/engines/mohawk/myst_areas.cpp
index 9ce5c9b296..3e938b3e78 100644
--- a/engines/mohawk/myst_areas.cpp
+++ b/engines/mohawk/myst_areas.cpp
@@ -98,13 +98,7 @@ MystResourceType5::MystResourceType5(MohawkEngine_Myst *vm, Common::SeekableRead
}
void MystResourceType5::handleMouseUp(Common::Point *mouse) {
-
- MystResource *invoking = this;
- while (invoking->_parent) {
- invoking = invoking->_parent;
- }
-
- _vm->_scriptParser->runScript(_script, invoking);
+ _vm->_scriptParser->runScript(_script, this);
}
// In Myst/Making of Myst, the paths are hardcoded ala Windows style without extension. Convert them.