mirror of
				https://github.com/vcmi/vcmi.git
				synced 2025-10-31 00:07:39 +02:00 
			
		
		
		
	Fix crash on selecting scenario with "start with strongest hero from
scenario X" starting bonus
This commit is contained in:
		| @@ -369,7 +369,7 @@ JsonNode CampaignState::crossoverSerialize(CGHeroInstance * hero) const | ||||
| CGHeroInstance * CampaignState::crossoverDeserialize(const JsonNode & node, CMap * map) const | ||||
| { | ||||
| 	JsonDeserializer handler(nullptr, const_cast<JsonNode&>(node)); | ||||
| 	auto * hero = new CGHeroInstance(map->cb); | ||||
| 	auto * hero = new CGHeroInstance(map ? map->cb : nullptr); | ||||
| 	hero->ID = Obj::HERO; | ||||
| 	hero->serializeJsonOptions(handler); | ||||
| 	if (map) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user