leere itemspoils abgefangen

This commit is contained in:
Katja Zedel 2002-05-05 18:48:02 +00:00
parent 71a9e24f02
commit 573777105e
1 changed files with 3 additions and 1 deletions

View File

@ -922,7 +922,9 @@ remove_troop(troop dt)
rmtroop(dt);
if (!df->alive && du->race->itemdrop) {
item * drops = du->race->itemdrop(du->race, du->number-df->run.number);
i_merge(&du->items, &drops);
if (drops != NULL){
i_merge(&du->items, &drops);
}
}
}