SW: fixed use of sound attribute array.

This was caused by incompletely reverting a code change.
This commit is contained in:
Christoph Oelckers 2024-10-09 12:00:01 +02:00
parent f9e4ce89fa
commit 053a6875bf

View file

@ -706,7 +706,7 @@ void Terminate3DSounds(void)
void PlaySpriteSound(DSWActor* actor, int attrib_ndx, int flags)
{
if (actor->hasU() && attrib_ndx > attr_none && attrib_ndx < MAXATTRIBSNDS)
PlaySound(actor->user.Attrib->Sounds[attrib_ndx], actor, flags);
PlaySound(actor->user.Attrib->Sounds[attrib_ndx - 1], actor, flags);
}
//==========================================================================