check if displayplayer skincolor is availible before returning it
This commit is contained in:
1 parent
eb02f15a5d
commit
2d166a35d0
1 file changed
+1
-1
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user