aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe/inventory.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2016-08-28 11:43:06 +0200
committerEugene Sandulenko2016-08-28 11:43:25 +0200
commite070485169da6331db0ebe63b19db9234c352ddc (patch)
treed1a7c3d95cd4440ee35deb2a0dafccb7741fefe8 /engines/fullpipe/inventory.cpp
parent0f0fee3add3dcff4740bb3c68765c109331573bc (diff)
downloadscummvm-rg350-e070485169da6331db0ebe63b19db9234c352ddc.tar.gz
scummvm-rg350-e070485169da6331db0ebe63b19db9234c352ddc.tar.bz2
scummvm-rg350-e070485169da6331db0ebe63b19db9234c352ddc.zip
FULLPIPE: Fix inventory items rebuilding
Diffstat (limited to 'engines/fullpipe/inventory.cpp')
-rw-r--r--engines/fullpipe/inventory.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/fullpipe/inventory.cpp b/engines/fullpipe/inventory.cpp
index 70ad19c8ea..f1dafeba7d 100644
--- a/engines/fullpipe/inventory.cpp
+++ b/engines/fullpipe/inventory.cpp
@@ -211,11 +211,15 @@ int Inventory2::getItemFlags(int itemId) {
}
void Inventory2::rebuildItemRects() {
+ debugC(2, kDebugInventory, "rebuildItemRects()");
+
_scene = g_fp->accessScene(_sceneId);
if (!_scene)
return;
+ _inventoryIcons.clear();
+
_picture = _scene->getBigPicture(0, 0);
_picture->setAlpha(50);