- Exhumed: Fixed CalcPosVel not initializing the vel parameter.

This caused spurious errors in OpenAL if the passed values were NANs or INFs.
Fixes #183
This commit is contained in:
Christoph Oelckers 2020-11-22 20:34:57 +01:00
parent 182b8023ca
commit 3bd48fb8c5

View file

@ -440,6 +440,8 @@ void EXSoundEngine::CalcPosVel(int type, const void* source, const float pt[3],
}
auto fcampos = GetSoundPos(&campos);
if (vel) vel->Zero();
if (type == SOURCE_Ambient)
{
*pos = *(FVector3*)source;