fixed parentheses

This commit is contained in:
Yehonal
2016-12-29 17:47:22 +01:00
parent 1bf0f981cc
commit 384ff412bf

View File

@@ -1331,11 +1331,12 @@ void LootTemplate::Process(Loot& loot, bool rate, uint16 lootMode, Player const*
sScriptMgr->OnAfterRefCount(item, maxcount); sScriptMgr->OnAfterRefCount(item, maxcount);
for (uint32 loop = 0; loop < maxcount; ++loop) // Ref multiplicator for (uint32 loop = 0; loop < maxcount; ++loop) // Ref multiplicator
Referenced->Process(loot, rate, lootMode, player, item->group); Referenced->Process(loot, rate, lootMode, player, item->group);
} } else {
else // Plain entries (not a reference, not grouped) // Plain entries (not a reference, not grouped)
sScriptMgr->OnBeforeDropAddItem(player, loot, item); sScriptMgr->OnBeforeDropAddItem(player, loot, item);
loot.AddItem(*item); // Chance is already checked, just add loot.AddItem(*item); // Chance is already checked, just add
} }
}
// Now processing groups // Now processing groups
for (LootGroups::const_iterator i = Groups.begin(); i != Groups.end(); ++i) for (LootGroups::const_iterator i = Groups.begin(); i != Groups.end(); ++i)