[11207] Fixed cheating with item loot with some conditionas.

Thanks to zergtmn for explictly pointing to problematic line.
This commit is contained in:
VladimirMangos 2011-02-27 21:17:29 +03:00
parent f1899e3b27
commit cd1465b1e4
2 changed files with 2 additions and 2 deletions

View file

@ -8057,7 +8057,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, item->GetProto()->MaxMoneyLoot == 0); loot->FillLoot(item->GetEntry(), LootTemplates_Item, this, true, 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 "11206" #define REVISION_NR "11207"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__