From 375bf639de609339b30846f52514580fb150cae6 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 1 Mar 2020 18:40:49 +0100 Subject: [PATCH] - that was stupid. --- source/sw/src/sounds.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/sw/src/sounds.cpp b/source/sw/src/sounds.cpp index e180a82c3..f19e3a01c 100644 --- a/source/sw/src/sounds.cpp +++ b/source/sw/src/sounds.cpp @@ -443,7 +443,7 @@ public: if (index < 0 || index >= MAX_SW_PLAYERS_REG) index = 0; chan->Source = &Player[index]; } - else if (chan->SourceType == SOURCE_Unattached && chan->Source >= 0) + else if (chan->SourceType == SOURCE_Unattached && index >= 0) { chan->Source = &sprite[index]; }