Remove an unnecessary cast

This commit is contained in:
Chris Robinson 2014-06-19 22:21:05 -07:00
parent 07a50c604e
commit 73d8659f23

View file

@ -851,7 +851,7 @@ void OpenALSoundRenderer::SetSfxVolume(float volume)
alSourcef(source, AL_MAX_GAIN, volume);
if(schan->ManualGain)
volume *= GetRolloff(&schan->Rolloff, sqrt(schan->DistanceSqr));
alSourcef(source, AL_GAIN, volume * ((FSoundChan*)schan)->Volume);
alSourcef(source, AL_GAIN, volume * schan->Volume);
}
schan = schan->NextChan;
}