SCUMM: Hopefully fix warning

Excplicitly cast to int to avoid a warning that I don't get, but
which clone2727 does. At least, I hope it avoids the warning.
This commit is contained in:
Torbjörn Andersson
2012-11-14 20:54:25 +01:00
parent 493644295d
commit 0b63ea1d8d
+1 -1
View File
@@ -245,7 +245,7 @@ int Player_Mac::readBuffer(int16 *data, const int numSamples) {
// but I ran into overflow problems with the church
// music. It's only once per note, so it should be ok.
double mult = (double)(_channel[i]._instrument._rate) / (double)_sampleRate;
_channel[i]._pitchModifier = mult * _pitchTable[pitchIdx];
_channel[i]._pitchModifier = (int)(mult * _pitchTable[pitchIdx]);
_channel[i]._velocity = velocity;
} else {
_channel[i]._pitchModifier = 0;