mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-24 08:32:34 +02:00
Fix creature set loading
This commit is contained in:
parent
8e3e574900
commit
66d8408130
@ -501,6 +501,8 @@ void CCreatureSet::serializeJson(JsonSerializeFormat & handler, const std::strin
|
||||
else
|
||||
{
|
||||
for(size_t idx = 0; idx < json.Vector().size(); idx++)
|
||||
{
|
||||
if(json.Vector()[idx]["amount"].Float() > 0)
|
||||
{
|
||||
CStackInstance * new_stack = new CStackInstance();
|
||||
|
||||
@ -510,6 +512,7 @@ void CCreatureSet::serializeJson(JsonSerializeFormat & handler, const std::strin
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
CStackInstance::CStackInstance()
|
||||
: armyObj(_armyObj)
|
||||
|
Loading…
Reference in New Issue
Block a user