Permalink
Browse files

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
  • Loading branch information...
1 parent 9c23fb8 commit a415bf0b866e5e3b052dffff9becf3990b45415c @bjorn bjorn committed Mar 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/game-server/inventory.cpp
@@ -760,7 +760,7 @@ bool Inventory::unequipItem(unsigned int itemId)
for (std::set<unsigned>::const_iterator it = itemInstances.begin(),
it_end = itemInstances.end(); it != it_end; ++it)
{
- if (!unequip(*it));
+ if (!unequip(*it))
return false;
}
return true;

0 comments on commit a415bf0

Please sign in to comment.