FULLPIPE: Fix inventory items rebuilding

This commit is contained in:
Eugene Sandulenko 2016-08-28 11:43:06 +02:00
parent 0f0fee3add
commit e070485169

View file

@ -211,11 +211,15 @@ int Inventory2::getItemFlags(int itemId) {
} }
void Inventory2::rebuildItemRects() { void Inventory2::rebuildItemRects() {
debugC(2, kDebugInventory, "rebuildItemRects()");
_scene = g_fp->accessScene(_sceneId); _scene = g_fp->accessScene(_sceneId);
if (!_scene) if (!_scene)
return; return;
_inventoryIcons.clear();
_picture = _scene->getBigPicture(0, 0); _picture = _scene->getBigPicture(0, 0);
_picture->setAlpha(50); _picture->setAlpha(50);