From 34981c61b6c97281c6a7e4895d6ebbfdf97e00a6 Mon Sep 17 00:00:00 2001 From: Bastien Bouclet Date: Mon, 29 Nov 2010 20:55:31 +0000 Subject: MOHAWK: Fix Myst opcode 14 svn-id: r54616 --- engines/mohawk/myst_areas.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'engines/mohawk/myst_areas.cpp') 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. -- cgit v1.2.3