diff options
-rw-r--r-- | engines/draci/game.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/draci/game.cpp b/engines/draci/game.cpp index dd4d6f7961..d34b43645a 100644 --- a/engines/draci/game.cpp +++ b/engines/draci/game.cpp @@ -249,7 +249,6 @@ void Game::handleOrdinaryLoop(int x, int y) { if (_currentItem) { putItem(_currentItem, 0); - _currentItem = NULL; updateOrdinaryCursor(); } else { if (_objUnderCursor) { @@ -341,9 +340,7 @@ void Game::handleInventoryLoop() { kInventoryItemHeight) - 1, 0L, (long) kInventoryLines - 1); const int index = line * kInventoryColumns + column; putItem(_currentItem, index); - - // Remove it from our hands - _currentItem = NULL; + updateInventoryCursor(); } } else if (_vm->_mouse->rButtonPressed()) { _vm->_mouse->rButtonSet(false); @@ -730,6 +727,9 @@ void Game::loadItemAnimation(GameItem *item) { } void Game::putItem(GameItem *item, int position) { + // Empty our hands + _currentItem = NULL; + if (!item) return; assert(position >= 0); |