nochmal der gleiche fehler, i_free ist zu pingelig :-)

This commit is contained in:
Enno Rehling 2005-04-30 13:51:25 +00:00
parent 4855b6de4a
commit f685f770f0
2 changed files with 10 additions and 12 deletions

View File

@ -864,19 +864,17 @@ cr_output_unit(FILE * F, const region * r,
} }
fprintf(F, "%d;%s\n", in, add_translation(ic, locale_string(f->locale, ic))); fprintf(F, "%d;%s\n", in, add_translation(ic, locale_string(f->locale, ic)));
} }
if (show!=u->items) { if (show!=u->items) {
/* free the temporary items */ /* free the temporary items */
while (show) { while (show) {
item * ishow = show; i_free(i_remove(&show, show));
show = show->next;
i_free(ishow);
}
} }
}
if ((u->faction == f || omniscient(f)) && u->botschaften) if ((u->faction == f || omniscient(f)) && u->botschaften)
cr_output_str_list(F, "EINHEITSBOTSCHAFTEN", u->botschaften, f); cr_output_str_list(F, "EINHEITSBOTSCHAFTEN", u->botschaften, f);
print_curses(F, f, u, TYP_UNIT); print_curses(F, f, u, TYP_UNIT);
} }
/* = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = */ /* = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = */

View File

@ -2832,7 +2832,7 @@ reports(void)
if (f->no != MONSTER_FACTION) { if (f->no != MONSTER_FACTION) {
int error = write_reports(f, ltime); int error = write_reports(f, ltime);
if (error) retval = error; if (error) retval = error;
if (!nosh && f->email && BAT) { if (f->email && BAT) {
sprintf(buf, "%s/%s.sh", reportpath(), factionid(f)); sprintf(buf, "%s/%s.sh", reportpath(), factionid(f));
shfp = fopen(buf, "w"); shfp = fopen(buf, "w");
fprintf(shfp,"#!/bin/sh\n\nPATH=%s\n\n",MailitPath()); fprintf(shfp,"#!/bin/sh\n\nPATH=%s\n\n",MailitPath());