From 1b5a82bccd9f6eb3568eeb7a7d300a0aba7048dd Mon Sep 17 00:00:00 2001 From: VladimirMangos Date: Fri, 7 Jan 2011 02:33:22 +0300 Subject: [PATCH] [10975] Report error about not existed item loot data only if item not have money loot. --- src/game/Player.cpp | 10 +++++----- src/shared/revision_nr.h | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 141249540..0dd9d4a96 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -7954,20 +7954,20 @@ void Player::SendLoot(ObjectGuid guid, LootType loot_type) switch(loot_type) { case LOOT_DISENCHANTING: - loot->FillLoot(item->GetProto()->DisenchantID, LootTemplates_Disenchant, this,true); + loot->FillLoot(item->GetProto()->DisenchantID, LootTemplates_Disenchant, this, true); item->SetLootState(ITEM_LOOT_TEMPORARY); break; case LOOT_PROSPECTING: - loot->FillLoot(item->GetEntry(), LootTemplates_Prospecting, this,true); + loot->FillLoot(item->GetEntry(), LootTemplates_Prospecting, this, true); item->SetLootState(ITEM_LOOT_TEMPORARY); break; case LOOT_MILLING: - loot->FillLoot(item->GetEntry(), LootTemplates_Milling, this,true); + loot->FillLoot(item->GetEntry(), LootTemplates_Milling, this, true); item->SetLootState(ITEM_LOOT_TEMPORARY); break; default: - loot->FillLoot(item->GetEntry(), LootTemplates_Item, this,true); - loot->generateMoneyLoot(item->GetProto()->MinMoneyLoot,item->GetProto()->MaxMoneyLoot); + loot->FillLoot(item->GetEntry(), LootTemplates_Item, this, item->GetProto()->MaxMoneyLoot == 0); + loot->generateMoneyLoot(item->GetProto()->MinMoneyLoot, item->GetProto()->MaxMoneyLoot); item->SetLootState(ITEM_LOOT_CHANGED); break; } diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 30d7e9b48..c16423129 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "10974" + #define REVISION_NR "10975" #endif // __REVISION_NR_H__