diff options
author | Strangerke | 2014-12-08 07:55:47 +0100 |
---|---|---|
committer | Paul Gilbert | 2014-12-12 23:03:38 -0500 |
commit | 960a787c033fa7a90d347b9d37c4c0e890444ce2 (patch) | |
tree | cec574f60fc75226b7f4f2ab039ca86aa861ff81 /engines/access | |
parent | 7508e7b5f8c491556b65ff48d54f289cec9532b1 (diff) | |
download | scummvm-rg350-960a787c033fa7a90d347b9d37c4c0e890444ce2.tar.gz scummvm-rg350-960a787c033fa7a90d347b9d37c4c0e890444ce2.tar.bz2 scummvm-rg350-960a787c033fa7a90d347b9d37c4c0e890444ce2.zip |
ACCESS: Reduce the scope of a variable in Inventory
Diffstat (limited to 'engines/access')
-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; |