diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/access/inventory.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/access/inventory.cpp b/engines/access/inventory.cpp index 78a85c3257..4038929a67 100644 --- a/engines/access/inventory.cpp +++ b/engines/access/inventory.cpp @@ -318,13 +318,13 @@ void InventoryManager::putInvIcon(int itemIndex, int itemId) { void InventoryManager::chooseItem() { EventsManager &events = *_vm->_events; _vm->_useItem = -1; - int selIndex; while (!_vm->shouldQuit()) { // Check for events events.pollEvents(); g_system->delayMillis(10); + int selIndex; // Poll events and wait for a click on a known area if (!events._leftButton || ((selIndex = coordIndexOf()) == -1)) continue; |