From 8486bd083a0eb96bd801dec5f6d86ee1295714b6 Mon Sep 17 00:00:00 2001 From: MascaraSnake Date: Tue, 11 Apr 2023 19:13:30 +0200 Subject: [PATCH] R_SkinUsable: Only check header of current map if one exists --- src/r_skins.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/r_skins.c b/src/r_skins.c index 56e322e87..b10a78c18 100644 --- a/src/r_skins.c +++ b/src/r_skins.c @@ -225,7 +225,7 @@ boolean R_SkinUsable(INT32 playernum, INT32 skinnum) return true; } - if (Playing() && (R_SkinAvailable(mapheaderinfo[gamemap-1]->forcecharacter) == skinnum)) + if (Playing() && mapheaderinfo[gamemap-1] && (R_SkinAvailable(mapheaderinfo[gamemap-1]->forcecharacter) == skinnum)) { // Force 1. return true;