dynamic options vs multi selection patch compatibility issue ref. #8

This commit is contained in:
bakkeby 2022-01-20 11:04:02 +01:00
parent 6dd910f53c
commit 452174309f

View File

@ -33,7 +33,11 @@ readstream(FILE* stream)
*p = '\0';
if (!(items[i].text = strdup(buf)))
die("cannot strdup %u bytes:", strlen(buf) + 1);
#if MULTI_SELECTION_PATCH
items[i].id = i;
#else
items[i].out = 0;
#endif // MULTI_SELECTION_PATCH
#if HIGHPRIORITY_PATCH
items[i].hp = arrayhas(hpitems, hplength, items[i].text);
#endif // HIGHPRIORITY_PATCH