From 80e519e442744af337052efba552758f6bbc3f2d Mon Sep 17 00:00:00 2001 From: toaster Date: Wed, 27 Dec 2023 15:28:19 +0000 Subject: [PATCH] mapheader_t destroyforchallenge: Actually read supplied mobjtypes past the first one Fixes Joypolis chairs not being counted --- src/deh_soc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/deh_soc.c b/src/deh_soc.c index 56c36604f..2e11d2ba2 100644 --- a/src/deh_soc.c +++ b/src/deh_soc.c @@ -1408,7 +1408,7 @@ void readlevelheader(MYFILE *f, char * name) do { if (j >= MAXDESTRUCTIBLES) break; - mapheaderinfo[num]->destroyforchallenge[j] = get_mobjtype(word2); + mapheaderinfo[num]->destroyforchallenge[j] = get_mobjtype(tmp); j++; } while ((tmp = strtok(NULL,",")) != NULL);