mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Merge remote-tracking branch 'vcmi/beta' into develop
This commit is contained in:
@@ -445,7 +445,7 @@ void CCreatureSet::setStackExp(const SlotID & slot, TExpType exp)
|
||||
stacks[slot]->experience = exp;
|
||||
}
|
||||
|
||||
void CCreatureSet::clear()
|
||||
void CCreatureSet::clearSlots()
|
||||
{
|
||||
while(!stacks.empty())
|
||||
{
|
||||
@@ -533,12 +533,12 @@ void CCreatureSet::changeStackCount(const SlotID & slot, TQuantity toAdd)
|
||||
|
||||
CCreatureSet::~CCreatureSet()
|
||||
{
|
||||
clear();
|
||||
clearSlots();
|
||||
}
|
||||
|
||||
void CCreatureSet::setToArmy(CSimpleArmy &src)
|
||||
{
|
||||
clear();
|
||||
clearSlots();
|
||||
while(src)
|
||||
{
|
||||
auto i = src.army.begin();
|
||||
@@ -1050,7 +1050,7 @@ void CStackBasicDescriptor::serializeJson(JsonSerializeFormat & handler)
|
||||
}
|
||||
}
|
||||
|
||||
void CSimpleArmy::clear()
|
||||
void CSimpleArmy::clearSlots()
|
||||
{
|
||||
army.clear();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user