[Scummvm-git-logs] scummvm master -> 3806a4a0f6587223b076b2249d905da0d554c4d0

dreammaster dreammaster at scummvm.org
Sat Mar 31 18:49:56 CEST 2018


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
3806a4a0f6 XEEN: Fix implementation of hasCursedItems method


Commit: 3806a4a0f6587223b076b2249d905da0d554c4d0
    https://github.com/scummvm/scummvm/commit/3806a4a0f6587223b076b2249d905da0d554c4d0
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2018-03-31T12:49:54-04:00

Commit Message:
XEEN: Fix implementation of hasCursedItems method

Changed paths:
    engines/xeen/item.cpp


diff --git a/engines/xeen/item.cpp b/engines/xeen/item.cpp
index c52f4e9..091afb3 100644
--- a/engines/xeen/item.cpp
+++ b/engines/xeen/item.cpp
@@ -743,13 +743,14 @@ void InventoryItemsGroup::curseUncurse(bool curse) {
 }
 
 bool InventoryItemsGroup::hasCursedItems() const {
-	bool isCursed = false;
 	for (int idx = 0; idx < INV_ITEMS_TOTAL; ++idx) {
 		for (ItemCategory cat = CATEGORY_WEAPON; cat <= CATEGORY_MISC; cat = (ItemCategory)((int)cat + 1)) {
 			if ((*this)[cat][idx]._state._cursed)
 				return true;
 		}
 	}
+
+	return false;
 }
 
 } // End of namespace Xeen





More information about the Scummvm-git-logs mailing list