mapheader_t destroyforchallenge: Actually read supplied mobjtypes past the first one

Fixes Joypolis chairs not being counted
This commit is contained in:
toaster 2023-12-27 15:28:19 +00:00
parent a15f6280d7
commit 80e519e442

View file

@ -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);