diff options
-rw-r--r-- | engines/illusions/bbdou/bbdou_inventory.cpp | 3 | ||||
-rw-r--r-- | engines/illusions/screen.cpp | 2 |
2 files changed, 2 insertions, 3 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; diff --git a/engines/illusions/screen.cpp b/engines/illusions/screen.cpp index f935315535..b2a970c12c 100644 --- a/engines/illusions/screen.cpp +++ b/engines/illusions/screen.cpp @@ -272,7 +272,7 @@ void ScreenPalette::shiftPalette(int16 fromIndex, int16 toIndex) { r = _mainPalette[3 * toIndex + 0]; g = _mainPalette[3 * toIndex + 1]; b = _mainPalette[3 * toIndex + 2]; - for (int16 i = toIndex + 1; i < fromIndex; +i) { //TODO fix this. +i + for (int16 i = toIndex + 1; i < fromIndex; ++i) { byte *dst = &_mainPalette[3 * i]; byte *src = &_mainPalette[3 * (i + 1)]; dst[0] = src[0]; |