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:
parent
275ec5f640
commit
92671947a0
@ -155,5 +155,6 @@ int CMusicHandler::playSoundFromSet(std::vector<soundBase::soundNames> &sound_ve
|
|||||||
|
|
||||||
void CMusicHandler::stopSound( int handler )
|
void CMusicHandler::stopSound( int handler )
|
||||||
{
|
{
|
||||||
Mix_HaltChannel(handler);
|
if (handler != -1)
|
||||||
|
Mix_HaltChannel(handler);
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user