diff options
author | Trazom62 <none@none> | 2010-03-14 00:22:53 +0100 |
---|---|---|
committer | Trazom62 <none@none> | 2010-03-14 00:22:53 +0100 |
commit | 6fdaf225f3bb9ce84e74f40e56727ccfea729a38 (patch) | |
tree | 381d341248fc721a4f9255c5756736560caaea54 /src/game/Player.cpp | |
parent | 274268a68643c949cd914229fe31e98dc4c862c4 (diff) |
Fix creature tapped and lootable dynamic flags => fix creature not lootable.
Fixes issue #1067.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Player.cpp')
-rw-r--r-- | src/game/Player.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 7305a2ac3f4..6893ac3a04a 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -16119,12 +16119,12 @@ bool Player::LoadFromDB( uint32 guid, SqlQueryHolder *holder ) return true; } -bool Player::isAllowedToLoot(Creature* creature) +bool Player::isAllowedToLoot(const Creature* creature) { - if (creature->isDead() && !creature->IsDamageEnoughForLootingAndReward()) + if (!creature->isDead() || !creature->IsDamageEnoughForLootingAndReward()) return false; - Loot* loot = &creature->loot; + const Loot* loot = &creature->loot; if (loot->items.size() == 0) return false; |