aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/kyra_hof.cpp
diff options
context:
space:
mode:
authorathrxx2011-02-16 16:23:44 +0100
committerathrxx2011-02-16 16:23:44 +0100
commitd7e700f370c258a5f4786d972af3666b93b71f94 (patch)
tree5a4bf4203b9088e29ee0146715720ae46208bf08 /engines/kyra/kyra_hof.cpp
parent68e468ee01b243e31b154a7fab42396c9b24e5f0 (diff)
downloadscummvm-rg350-d7e700f370c258a5f4786d972af3666b93b71f94.tar.gz
scummvm-rg350-d7e700f370c258a5f4786d972af3666b93b71f94.tar.bz2
scummvm-rg350-d7e700f370c258a5f4786d972af3666b93b71f94.zip
KYRA/LOL: fixed hand item cursor bug
This fixes a bug when loading savegames with different active hand items via GMM. The mouse cursor was not set to the active hand item in these cases.
Diffstat (limited to 'engines/kyra/kyra_hof.cpp')
-rw-r--r--engines/kyra/kyra_hof.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/kyra/kyra_hof.cpp b/engines/kyra/kyra_hof.cpp
index 5c471a8c8b..49b1d17d73 100644
--- a/engines/kyra/kyra_hof.cpp
+++ b/engines/kyra/kyra_hof.cpp
@@ -504,6 +504,11 @@ void KyraEngine_HoF::runLoop() {
int inputFlag = checkInput(_buttonList, true);
removeInputTop();
+ if (_updateHandItemCursor) {
+ _updateHandItemCursor = false;
+ setHandItem(_itemInHand);
+ }
+
update();
if (inputFlag == 198 || inputFlag == 199) {