Fix [store_unit]kill=yes (bug #22007)

This commit is contained in:
Alexander van Gessel 2014-05-03 04:19:25 +02:00
parent e087767060
commit 9366aa2a9c

View file

@ -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);
}