Skip to content

Commit

Permalink
ACCESS: Reduce the scope of a variable in Inventory
Browse files Browse the repository at this point in the history
  • Loading branch information
Strangerke authored and dreammaster committed Dec 13, 2014
1 parent 7508e7b commit 960a787
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/access/inventory.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 960a787

Please sign in to comment.