Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[z1212] Report error about not existed item loot data only if item no…

…t have money loot.

(based on commit master 06f6f62)

(based on commit 9c35d44)
  • Loading branch information...
commit 5f83b05be6dc4d29a412902b485619f83aa96e9c 1 parent f64f96b
VladimirMangos authored
Showing with 4 additions and 4 deletions.
  1. +3 −3 src/game/Player.cpp
  2. +1 −1  src/shared/revision_nr.h
View
6 src/game/Player.cpp
@@ -7052,12 +7052,12 @@ 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;
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;
}
View
2  src/shared/revision_nr.h
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
- #define REVISION_NR "1211"
+ #define REVISION_NR "1212"
#endif // __REVISION_NR_H__
Please sign in to comment.
Something went wrong with that request. Please try again.