From a415bf0b866e5e3b052dffff9becf3990b45415c Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Thu, 15 Mar 2012 22:08:15 +0100 Subject: Fixed Inventory::unequipItem function Due to a misplaced semicolon, it always returned false after the first instance. This function is only used by the script function chr_unequip_item. Reviewed-by: Yohann Ferreira --- src/game-server/inventory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/game-server/inventory.cpp b/src/game-server/inventory.cpp index 1b5e67e..c568c58 100644 --- a/src/game-server/inventory.cpp +++ b/src/game-server/inventory.cpp @@ -760,7 +760,7 @@ bool Inventory::unequipItem(unsigned int itemId) for (std::set::const_iterator it = itemInstances.begin(), it_end = itemInstances.end(); it != it_end; ++it) { - if (!unequip(*it)); + if (!unequip(*it)) return false; } return true; -- cgit