summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-09-05 21:32:56 +0300
committerAndrei Karas <akaras@inbox.ru>2011-09-05 21:32:56 +0300
commit64a14cb9d04c4cf0ea5a2ff5b09578c86335086b (patch)
treef78d166c93f19c6b563892425b94faaa7208c762
parent93e87e3d637b1a98a5f0cfee945e8ceb7799fcad (diff)
downloadplus-64a14cb9d04c4cf0ea5a2ff5b09578c86335086b.tar.gz
plus-64a14cb9d04c4cf0ea5a2ff5b09578c86335086b.tar.bz2
plus-64a14cb9d04c4cf0ea5a2ff5b09578c86335086b.tar.xz
plus-64a14cb9d04c4cf0ea5a2ff5b09578c86335086b.zip
fix missing set sound channel.
-rw-r--r--src/resources/soundeffect.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resources/soundeffect.cpp b/src/resources/soundeffect.cpp
index de11a8786..e8e5d3dbb 100644
--- a/src/resources/soundeffect.cpp
+++ b/src/resources/soundeffect.cpp
@@ -57,5 +57,5 @@ bool SoundEffect::play(int loops, int volume, int channel)
{
Mix_VolumeChunk(mChunk, volume);
- return Mix_PlayChannel(-1, mChunk, loops) != -1;
+ return Mix_PlayChannel(channel, mChunk, loops) != -1;
}