I’m not sure I understand what’s going on in these blocks of code:
The firs block takes a ConditionList arguement and clears all the conditions. It then calls CopyConditions() for LootGroup and also clears all the conditions (as shown in the second code block).
Nowhere does it actually copy anything that I can see, it only seems to clear everything.
[CODE]void LootTemplate::CopyConditions(ConditionList conditions)
{
for (LootStoreItemList::iterator i = Entries.begin(); i != Entries.end(); ++i)
i->conditions.clear();
for (LootGroups::iterator i = Groups.begin(); i != Groups.end(); ++i)
i->CopyConditions(conditions);
}[/CODE]
[CODE]void LootTemplate::LootGroup::CopyConditions(ConditionList /conditions/)
{
for (LootStoreItemList::iterator i = ExplicitlyChanced.begin(); i != ExplicitlyChanced.end(); ++i)
{
i->conditions.clear();
}
for (LootStoreItemList::iterator i = EqualChanced.begin(); i != EqualChanced.end(); ++i)
{
i->conditions.clear();
}
}[/CODE]