1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-02-03 13:01:33 +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:
Michał W. Urbańczyk 2009-04-25 22:51:16 +00:00
parent 275ec5f640
commit 92671947a0

View File

@ -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);
}