aboutsummaryrefslogtreecommitdiff
path: root/engines/illusions/bbdou
diff options
context:
space:
mode:
authorEric Fry2018-06-26 22:38:24 +1000
committerEugene Sandulenko2018-07-20 06:43:33 +0000
commitd36eae4c17f15fe05d5a18508dd0b6fddfa1c96f (patch)
treeab69178c5dcace5d44edcb8e492d3ff4947c5e47 /engines/illusions/bbdou
parent989d8d9b8abecee3f0b72c92a05067e128fc6cdd (diff)
downloadscummvm-rg350-d36eae4c17f15fe05d5a18508dd0b6fddfa1c96f.tar.gz
scummvm-rg350-d36eae4c17f15fe05d5a18508dd0b6fddfa1c96f.tar.bz2
scummvm-rg350-d36eae4c17f15fe05d5a18508dd0b6fddfa1c96f.zip
ILLUSIONS: Fix typo in palette cycle logic.
Fix uninitialised local variable
Diffstat (limited to 'engines/illusions/bbdou')
-rw-r--r--engines/illusions/bbdou/bbdou_inventory.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/illusions/bbdou/bbdou_inventory.cpp b/engines/illusions/bbdou/bbdou_inventory.cpp
index 1c4c2c8619..e35a2e82ad 100644
--- a/engines/illusions/bbdou/bbdou_inventory.cpp
+++ b/engines/illusions/bbdou/bbdou_inventory.cpp
@@ -290,9 +290,8 @@ void BbdouInventory::clear() {
void BbdouInventory::cause0x1B0001(TriggerFunction *triggerFunction, uint32 callingThreadId) {
// TODO
- debug("cause0x1B0001");
uint32 foundSceneId, foundVerbId, foundObjectId2, foundObjectId;
- bool found;
+ bool found = false;
InventoryBag *inventoryBag = getInventoryBag(_activeInventorySceneId);
InventorySlot *inventorySlot = inventoryBag->getInventorySlot(triggerFunction->_objectId);
uint32 objectId = inventorySlot->_inventoryItem->_objectId;