From 1845a9588d78e669f8d9b10661f4addc39b6a6ea Mon Sep 17 00:00:00 2001 From: Trazom62 Date: Mon, 15 Mar 2010 00:21:37 +0100 Subject: Fix lootable check in Player::isAllowedToLoot. --HG-- branch : trunk --- src/game/Player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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(); -- cgit v1.2.3