diff options
author | Matthew Hoops | 2011-09-08 13:11:38 -0400 |
---|---|---|
committer | Matthew Hoops | 2011-09-08 13:11:38 -0400 |
commit | 715c95ecfc30f53bdf2f35ab883654ea80ee154b (patch) | |
tree | 71529c87489ab7a3f3ed8fd8c17907e38e02b6d6 /engines/pegasus/items/inventory | |
parent | ecd81a9a6d84e74fa89b0905620bcc342ef68da5 (diff) | |
download | scummvm-rg350-715c95ecfc30f53bdf2f35ab883654ea80ee154b.tar.gz scummvm-rg350-715c95ecfc30f53bdf2f35ab883654ea80ee154b.tar.bz2 scummvm-rg350-715c95ecfc30f53bdf2f35ab883654ea80ee154b.zip |
PEGASUS: Fix stupid bugs in the item code
Diffstat (limited to 'engines/pegasus/items/inventory')
-rwxr-xr-x | engines/pegasus/items/inventory/inventoryitem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/pegasus/items/inventory/inventoryitem.cpp b/engines/pegasus/items/inventory/inventoryitem.cpp index 868291109d..ffa745acef 100755 --- a/engines/pegasus/items/inventory/inventoryitem.cpp +++ b/engines/pegasus/items/inventory/inventoryitem.cpp @@ -33,7 +33,7 @@ namespace Pegasus { InventoryItem::InventoryItem(const tItemID id, const tNeighborhoodID neighborhood, const tRoomID room, const tDirectionConstant direction) : Item(id, neighborhood, room, direction) { - PegasusEngine *vm = (PegasusEngine *)vm; + PegasusEngine *vm = (PegasusEngine *)g_engine; Common::SeekableReadStream *leftInfo = vm->_resFork->getResource(MKTAG('L', 'e', 'f', 't'), kItemBaseResID + id); if (leftInfo) { |