[10975] Report error about not existed item loot data only if item not have money loot.

This commit is contained in:
VladimirMangos 2011-01-07 02:33:22 +03:00
parent dba840fe01
commit 1b5a82bccd
2 changed files with 6 additions and 6 deletions

View file

@ -7966,7 +7966,7 @@ void Player::SendLoot(ObjectGuid guid, LootType loot_type)
item->SetLootState(ITEM_LOOT_TEMPORARY); item->SetLootState(ITEM_LOOT_TEMPORARY);
break; break;
default: default:
loot->FillLoot(item->GetEntry(), LootTemplates_Item, this,true); loot->FillLoot(item->GetEntry(), LootTemplates_Item, this, item->GetProto()->MaxMoneyLoot == 0);
loot->generateMoneyLoot(item->GetProto()->MinMoneyLoot, item->GetProto()->MaxMoneyLoot); loot->generateMoneyLoot(item->GetProto()->MinMoneyLoot, item->GetProto()->MaxMoneyLoot);
item->SetLootState(ITEM_LOOT_CHANGED); item->SetLootState(ITEM_LOOT_CHANGED);
break; break;

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "10974" #define REVISION_NR "10975"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__