From 5bb149c47a07210aa28ecb67aa45f48043940aa3 Mon Sep 17 00:00:00 2001 From: toaster Date: Tue, 13 Dec 2022 22:20:06 +0000 Subject: [PATCH] Permit M_CheckNetUnlockByID if conditionset is zeroed --- src/m_cond.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/m_cond.c b/src/m_cond.c index cf10e499b..8730e28b4 100644 --- a/src/m_cond.c +++ b/src/m_cond.c @@ -999,7 +999,8 @@ UINT8 M_CompletionEmblems(void) // Bah! Duplication sucks, but it's for a separa boolean M_CheckNetUnlockByID(UINT8 unlockid) { - if (unlockid >= MAXUNLOCKABLES) + if (unlockid >= MAXUNLOCKABLES + || !unlockables[unlockid].conditionset) { return true; // default permit }