aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Loot/LootMgr.cpp
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2017-05-08 23:56:07 +0200
committerShauren <shauren.trinity@gmail.com>2017-05-08 23:56:35 +0200
commit8fc527f404b65f7335601495b29a68acaf0de9e4 (patch)
tree3761067231614fac8da5e35cd18d424875dd54a1 /src/server/game/Loot/LootMgr.cpp
parent0936b01895b47785adeeae27cd270bffbc3b578b (diff)
Core/Items: Set and save item context field
Diffstat (limited to 'src/server/game/Loot/LootMgr.cpp')
-rw-r--r--src/server/game/Loot/LootMgr.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server/game/Loot/LootMgr.cpp b/src/server/game/Loot/LootMgr.cpp
index c22583bbac2..6b984054fb2 100644
--- a/src/server/game/Loot/LootMgr.cpp
+++ b/src/server/game/Loot/LootMgr.cpp
@@ -367,6 +367,7 @@ LootItem::LootItem(LootStoreItem const& li)
randomSuffix = GenerateEnchSuffixFactor(itemid);
randomPropertyId = Item::GenerateItemRandomPropertyId(itemid);
upgradeId = sDB2Manager.GetRulesetItemUpgrade(itemid);
+ context = 0;
count = 0;
is_looted = 0;
is_blocked = 0;
@@ -433,6 +434,7 @@ void Loot::AddItem(LootStoreItem const& item)
for (uint32 i = 0; i < stacks && lootItems.size() < limit; ++i)
{
LootItem generatedLoot(item);
+ generatedLoot.context = _difficultyBonusTreeMod;
generatedLoot.count = std::min(count, proto->GetMaxStackSize());
if (_difficultyBonusTreeMod)
{