From 5a7c481f69964a4c9866dbd07619ca5a29d74834 Mon Sep 17 00:00:00 2001 From: Indev Date: Sun, 3 Nov 2024 00:26:18 +0300 Subject: [PATCH] Fix normal skin being unable to load if localskins limit is reached (thx Alug for pointing out <3) --- src/r_things.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/r_things.c b/src/r_things.c index 04b6a6c07..f3c698b9d 100644 --- a/src/r_things.c +++ b/src/r_things.c @@ -3305,7 +3305,7 @@ void R_AddSkins(UINT16 wadnum, boolean local) CONS_Alert(CONS_WARNING, M_GetText("Unable to add skin, too many characters are loaded (%d maximum)\n"), MAXSKINS); continue; // so we know how many skins couldn't be added } - if (numlocalskins >= MAXLOCALSKINS) + if (local && numlocalskins >= MAXLOCALSKINS) { CONS_Alert(CONS_WARNING, M_GetText("Unable to add localskin, too many localskins are loaded (%d maximum)\n"), MAXLOCALSKINS); continue; // so we know how many skins couldn't be added