diff options
-rw-r--r-- | engines/toltecs/menu.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/toltecs/menu.cpp b/engines/toltecs/menu.cpp index 85cd15b8fa..b52d7dad82 100644 --- a/engines/toltecs/menu.cpp +++ b/engines/toltecs/menu.cpp @@ -328,6 +328,11 @@ void MenuSystem::initMenu(MenuID menuID) { if ((*iter).enabled) drawItem((*iter).id, false); } + + // Check if the mouse is already over an item + _currItemID = kItemIdNone; + Common::Point mousePos = _vm->_system->getEventManager()->getMousePos(); + handleMouseMove(mousePos.x, mousePos.y); } void MenuSystem::enableItem(ItemID id) { @@ -335,6 +340,7 @@ void MenuSystem::enableItem(ItemID id) { if (item) { item->enabled = true; drawItem(id, false); + _currItemID = kItemIdNone; Common::Point mousePos = _vm->_system->getEventManager()->getMousePos(); handleMouseMove(mousePos.x, mousePos.y); } |