mirror of
				https://github.com/vcmi/vcmi.git
				synced 2025-10-31 00:07:39 +02:00 
			
		
		
		
	Fix segfault when non-hero forces win
This commit is contained in:
		| @@ -741,7 +741,7 @@ void CGameHandler::battleAfterLevelUp( const BattleResult &result ) | ||||
|  | ||||
| 		sendAndApply(&sah); | ||||
| 	} | ||||
| 	if(finishingBattle->winnerHero->stacks.empty()) | ||||
| 	if(finishingBattle->winnerHero && finishingBattle->winnerHero->stacks.empty()) | ||||
| 	{ | ||||
| 		RemoveObject ro(finishingBattle->winnerHero->id); | ||||
| 		sendAndApply(&ro); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user