check if displayplayer skincolor is availible before returning it

This commit is contained in:
Alug committed 2024-07-31 00:28:29 +02:00
1 parent eb02f15a5d
commit 2d166a35d0
1 file changed
+1 -1
+1 -1
View File
@@ -889,7 +889,7 @@ static INT32 G_GetDeviceForPlayer(INT32 player)
static UINT16 G_GetSkinColor(INT32 player)
{
if (gamestate == GS_LEVEL)
if (players[displayplayers[player]].skincolor && gamestate == GS_LEVEL)
return players[displayplayers[player]].skincolor;
switch (player)