- that was stupid.

This commit is contained in:
Christoph Oelckers 2020-03-01 18:40:49 +01:00
parent 951d28f15d
commit 375bf639de

View file

@ -443,7 +443,7 @@ public:
if (index < 0 || index >= MAX_SW_PLAYERS_REG) index = 0; if (index < 0 || index >= MAX_SW_PLAYERS_REG) index = 0;
chan->Source = &Player[index]; 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]; chan->Source = &sprite[index];
} }