From 8bee6bef59f46951b60d839480cbf150ad367460 Mon Sep 17 00:00:00 2001 From: Alam Arias Date: Tue, 6 Jan 2015 13:13:25 +0000 Subject: [PATCH] Make sure clear_conditionsets feeds in 1 to MAXCONDITIONSETS instead of 0 to MAXCONDITIONSETS-1, so that M_ClearConditionSet can use them all properly AND clear all condition sets properly. Apparently the mistake also caused myargc to be cleared in Linux64 SDL2 (as pointed out by that ilag11111 guy on GitHub), so that should be fixed now too. --- src/dehacked.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dehacked.c b/src/dehacked.c index 2dc9d742..a332da5d 100644 --- a/src/dehacked.c +++ b/src/dehacked.c @@ -351,7 +351,7 @@ static void clear_conditionsets(void) { UINT8 i; for (i = 0; i < MAXCONDITIONSETS; ++i) - M_ClearConditionSet(i); + M_ClearConditionSet(i+1); } static void clear_levels(void)