forked from github/server
crash, weil i_free ein pingeliges assert hat.
This commit is contained in:
parent
a6cc3216b6
commit
4855b6de4a
|
@ -3216,9 +3216,7 @@ static void
|
||||||
free_fighter(fighter * fig)
|
free_fighter(fighter * fig)
|
||||||
{
|
{
|
||||||
while (fig->loot) {
|
while (fig->loot) {
|
||||||
item * itm = fig->loot;
|
i_free(i_remove(&fig->loot, fig->loot));
|
||||||
fig->loot = itm->next;
|
|
||||||
i_free(itm);
|
|
||||||
}
|
}
|
||||||
free(fig->person);
|
free(fig->person);
|
||||||
free(fig->weapons);
|
free(fig->weapons);
|
||||||
|
|
Loading…
Reference in New Issue