mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-26 22:57:00 +02:00
commit
27ef876bd6
@ -246,7 +246,6 @@ void LibClasses::init(bool onlyEssential)
|
||||
|
||||
void LibClasses::clear()
|
||||
{
|
||||
delete generaltexth;
|
||||
delete heroh;
|
||||
delete arth;
|
||||
delete creh;
|
||||
@ -263,6 +262,7 @@ void LibClasses::clear()
|
||||
delete scriptHandler;
|
||||
#endif
|
||||
delete battlefieldsHandler;
|
||||
delete generaltexth;
|
||||
makeNull();
|
||||
}
|
||||
|
||||
|
@ -1621,6 +1621,13 @@ void CGHeroInstance::serializeJsonOptions(JsonSerializeFormat & handler)
|
||||
|
||||
if(!handler.saving)
|
||||
{
|
||||
if(!appearance)
|
||||
{
|
||||
// crossoverDeserialize
|
||||
type = VLC->heroh->objects[subID];
|
||||
appearance = VLC->objtypeh->getHandlerFor(Obj::HERO, type->heroClass->getIndex())->getTemplates().front();
|
||||
}
|
||||
|
||||
patrol.patrolling = (rawPatrolRadius > NO_PATROLING);
|
||||
patrol.initialPos = visitablePos();
|
||||
patrol.patrolRadius = (rawPatrolRadius > NO_PATROLING) ? rawPatrolRadius : 0;
|
||||
|
Loading…
Reference in New Issue
Block a user