forked from github/server
leere itemspoils abgefangen
This commit is contained in:
parent
71a9e24f02
commit
573777105e
1 changed files with 3 additions and 1 deletions
|
@ -922,9 +922,11 @@ remove_troop(troop dt)
|
|||
rmtroop(dt);
|
||||
if (!df->alive && du->race->itemdrop) {
|
||||
item * drops = du->race->itemdrop(du->race, du->number-df->run.number);
|
||||
if (drops != NULL){
|
||||
i_merge(&du->items, &drops);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------- */
|
||||
|
||||
|
|
Loading…
Reference in a new issue