mirror of
				https://github.com/vcmi/vcmi.git
				synced 2025-10-31 00:07:39 +02:00 
			
		
		
		
	Sound patch from Ubuntux #5 - fixes a bug in stopSound where all channels would be stopped if -1 is given in parameter.
(vcmi_sound_stop_one_channel.diff)
This commit is contained in:
		| @@ -155,5 +155,6 @@ int CMusicHandler::playSoundFromSet(std::vector<soundBase::soundNames> &sound_ve | ||||
|  | ||||
| void CMusicHandler::stopSound( int handler ) | ||||
| { | ||||
| 	Mix_HaltChannel(handler); | ||||
| 	if (handler != -1) | ||||
| 		Mix_HaltChannel(handler); | ||||
| } | ||||
		Reference in New Issue
	
	Block a user