aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTrazom62 <none@none>2010-03-15 00:21:37 +0100
committerTrazom62 <none@none>2010-03-15 00:21:37 +0100
commit1845a9588d78e669f8d9b10661f4addc39b6a6ea (patch)
tree8e5bbe0917778afd2b820c6b811f998fb46f8cbc /src
parentc8fd37a9dc69520a6f7ea575232ec29cfd2b1f70 (diff)
Fix lootable check in Player::isAllowedToLoot.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Player.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index 6893ac3a04a..44c666c5ed0 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -16125,7 +16125,7 @@ bool Player::isAllowedToLoot(const Creature* creature)
return false;
const Loot* loot = &creature->loot;
- if (loot->items.size() == 0)
+ if (loot->isLooted()) // nothing to loot or everything looted.
return false;
Player* recipient = creature->GetLootRecipient();