Fix [store_unit]kill=yes (bug #22007)
This commit is contained in:
parent
e087767060
commit
9366aa2a9c
1 changed files with 1 additions and 1 deletions
|
@ -2158,12 +2158,12 @@ static int intf_put_unit(lua_State *L)
|
|||
}
|
||||
|
||||
resources::screen->invalidate(loc);
|
||||
resources::units->erase(loc);
|
||||
if (!u) return 0;
|
||||
|
||||
if (lu) {
|
||||
lu->put_map(loc);
|
||||
} else {
|
||||
resources::units->erase(loc);
|
||||
u->set_location(loc);
|
||||
resources::units->insert(u);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue