diff options
author | Eugene Sandulenko | 2015-01-04 19:32:26 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2015-01-04 19:32:26 +0100 |
commit | 7da48233ce9a0154364bf26c1e419d24e70f2a26 (patch) | |
tree | 53979f8116e4e2a011af09b5629fce8ce2443ae1 /engines | |
parent | 882e0ca8cbc507cfba8dec1a340be9f5462069c3 (diff) | |
download | scummvm-rg350-7da48233ce9a0154364bf26c1e419d24e70f2a26.tar.gz scummvm-rg350-7da48233ce9a0154364bf26c1e419d24e70f2a26.tar.bz2 scummvm-rg350-7da48233ce9a0154364bf26c1e419d24e70f2a26.zip |
FULLPIPE: Fix bug in inventory
Diffstat (limited to 'engines')
-rw-r--r-- | engines/fullpipe/inventory.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/fullpipe/inventory.cpp b/engines/fullpipe/inventory.cpp index e79f9c54df..f9b507c50b 100644 --- a/engines/fullpipe/inventory.cpp +++ b/engines/fullpipe/inventory.cpp @@ -126,7 +126,7 @@ void Inventory2::removeItem2(Scene *sceneObj, int itemId, int x, int y, int prio int idx = getInventoryItemIndexById(itemId); if (idx >= 0) { - if (_inventoryItems[idx]->itemId >> 16) { + if (_inventoryItems[idx]->count) { removeItem(itemId, 1); Scene *sc = g_fp->accessScene(_sceneId); |