diff --git a/src/creport.c b/src/creport.c index eeaa563bb..91d56ca3b 100644 --- a/src/creport.c +++ b/src/creport.c @@ -1529,6 +1529,7 @@ static void report_itemtype(FILE *F, faction *f, const item_type *itype) { fprintf(F, "\"%s\"\n", translate(ch, LOC(f->locale, ch))); m++; } + assert(!m->rtype); } } diff --git a/src/economy.c b/src/economy.c index 5fbb0111c..3bb7b1066 100644 --- a/src/economy.c +++ b/src/economy.c @@ -1252,7 +1252,6 @@ static void create_potion(unit * u, const item_type * itype, int want) /* something missing from the list of materials */ ADDMSG(&u->faction->msgs, msg_materials_required(u, u->thisorder, itype->construction, want)); - return; break; default: i_change(&u->items, itype, built); diff --git a/src/exparse.c b/src/exparse.c index 07acb090e..9f49459a9 100644 --- a/src/exparse.c +++ b/src/exparse.c @@ -625,6 +625,7 @@ static void handle_requirement(parseinfo *pi, const XML_Char *el, const XML_Char assert(nreqs < MAX_REQUIREMENTS); req = reqs + nreqs; + req->number = 1; for (i = 0; attr[i]; i += 2) { if (xml_strcmp(attr[i], "type") == 0) { req->rtype = rt_get_or_create(attr[i + 1]); diff --git a/src/report.c b/src/report.c index 2a0e9eb3a..407c0c767 100644 --- a/src/report.c +++ b/src/report.c @@ -2212,6 +2212,7 @@ report_plaintext(const char *filename, report_context * ctx, if (wrptr(&bufp, &size, bytes) != 0) WARN_STATIC_BUFFER(); } + assert(!rm->rtype); } *bufp = 0; centre(out, buf, true);