Skip to content

Commit

Permalink
Merge bug fix from master
Browse files Browse the repository at this point in the history
  • Loading branch information
marksamman committed Nov 2, 2014
1 parent 729d8c6 commit 2dbaa28
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2579,10 +2579,10 @@ ReturnValue Player::__queryAdd(int32_t index, const Thing* thing, uint32_t count
} else {
const Item* leftItem = inventory[CONST_SLOT_LEFT];
if (leftItem) {
if (leftItem->getSlotPosition() & SLOTP_TWO_HAND) {
ret = RETURNVALUE_BOTHHANDSNEEDTOBEFREE;
} else if (slotPosition & SLOTP_TWO_HAND) {
if ((leftItem->getSlotPosition() | slotPosition) & SLOTP_TWO_HAND) {
ret = RETURNVALUE_BOTHHANDSNEEDTOBEFREE;
} else {
ret = RETURNVALUE_NOERROR;
}
} else {
ret = RETURNVALUE_NOERROR;
Expand Down

0 comments on commit 2dbaa28

Please sign in to comment.