diff options
author | Eric Fry | 2018-06-26 22:38:24 +1000 |
---|---|---|
committer | Eugene Sandulenko | 2018-07-20 06:43:33 +0000 |
commit | d36eae4c17f15fe05d5a18508dd0b6fddfa1c96f (patch) | |
tree | ab69178c5dcace5d44edcb8e492d3ff4947c5e47 /engines/illusions/bbdou | |
parent | 989d8d9b8abecee3f0b72c92a05067e128fc6cdd (diff) | |
download | scummvm-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.cpp | 3 |
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; |