From 2d166a35d0c139519d3ed0c8ff1446e706271726 Mon Sep 17 00:00:00 2001 From: Alug Date: Wed, 31 Jul 2024 00:28:29 +0200 Subject: [PATCH] check if displayplayer skincolor is availible before returning it --- src/g_input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/g_input.c b/src/g_input.c index 105e84532..f7057d4e4 100644 --- a/src/g_input.c +++ b/src/g_input.c @@ -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)