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,7 +922,9 @@ remove_troop(troop dt)
|
||||||
rmtroop(dt);
|
rmtroop(dt);
|
||||||
if (!df->alive && du->race->itemdrop) {
|
if (!df->alive && du->race->itemdrop) {
|
||||||
item * drops = du->race->itemdrop(du->race, du->number-df->run.number);
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue