mirror of
				https://github.com/vcmi/vcmi.git
				synced 2025-10-31 00:07:39 +02:00 
			
		
		
		
	Crash fix
Fixed a crash that could occur when closing the game.
This commit is contained in:
		| @@ -48,7 +48,10 @@ CSoundHandler::CSoundHandler(): | ||||
| 	{ | ||||
| 		Mix_ChannelFinished([](int channel) | ||||
| 		{ | ||||
| 			CCS->soundh->soundFinishedCallback(channel); | ||||
| 			if (CCS) | ||||
| 			{ | ||||
| 				CCS->soundh->soundFinishedCallback(channel); | ||||
| 			} | ||||
| 		}); | ||||
| 	} | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user