From 053a6875bf615aeff21f59e3c45b5531c9c5b1e8 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 9 Oct 2024 12:00:01 +0200 Subject: [PATCH] SW: fixed use of sound attribute array. This was caused by incompletely reverting a code change. --- source/games/sw/src/sounds.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/games/sw/src/sounds.cpp b/source/games/sw/src/sounds.cpp index befb3922d..28c067288 100644 --- a/source/games/sw/src/sounds.cpp +++ b/source/games/sw/src/sounds.cpp @@ -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); } //==========================================================================