aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/inventory.cpp
diff options
context:
space:
mode:
authorNicola Mettifogo2007-03-29 18:34:31 +0000
committerNicola Mettifogo2007-03-29 18:34:31 +0000
commit711865ef635cecac9d425976e0f0407ca137f4e5 (patch)
tree1cce36663d243b918095746a4cb5f27fa62415ff /engines/parallaction/inventory.cpp
parent623ca8802269914ab90a1127f89c66dd2cb571f1 (diff)
downloadscummvm-rg350-711865ef635cecac9d425976e0f0407ca137f4e5.tar.gz
scummvm-rg350-711865ef635cecac9d425976e0f0407ca137f4e5.tar.bz2
scummvm-rg350-711865ef635cecac9d425976e0f0407ca137f4e5.zip
- implemented destructor for Cnv, thus removing calls to Gfx::freeCnv()
- enforced use of getFramePtr instead of Cnv::_array member svn-id: r26317
Diffstat (limited to 'engines/parallaction/inventory.cpp')
-rw-r--r--engines/parallaction/inventory.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/parallaction/inventory.cpp b/engines/parallaction/inventory.cpp
index 0a70df12db..9fca713482 100644
--- a/engines/parallaction/inventory.cpp
+++ b/engines/parallaction/inventory.cpp
@@ -187,7 +187,7 @@ void drawInventoryItem(uint16 pos, InventoryItem *item) {
uint16 col = pos % INVENTORY_ITEMS_PER_LINE;
// FIXME: this will end up in a general blit function
- byte* s = _vm->_char._objs->_array[item->_index];
+ byte* s = _vm->_char._objs->getFramePtr(item->_index);
byte* d = _buffer + col * INVENTORYITEM_WIDTH + line * _vm->_char._objs->_height * INVENTORY_WIDTH;
for (uint32 i = 0; i < INVENTORYITEM_HEIGHT; i++) {
memcpy(d, s, INVENTORYITEM_WIDTH);