Skip to content

Commit

Permalink
Fix stocks update (and therefore manager orders) never completing if …
Browse files Browse the repository at this point in the history
…the floor plan does not include a garbage pit. See #31.
  • Loading branch information
BenLubar committed Oct 12, 2017
1 parent b24a3ce commit 6e04942
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions stocks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1070,7 +1070,10 @@ void Stocks::update_corpses(color_ostream & out)
{
room *r = ai->plan->find_room(room_type::garbagepit);
if (!r)
{
updating_corpses = false;
return;
}
df::coord t = r->min - df::coord(0, 0, 1);

for (auto it = world->items.other[items_other_id::ANY_CORPSE].begin(); it != world->items.other[items_other_id::ANY_CORPSE].end(); it++)
Expand Down

0 comments on commit 6e04942

Please sign in to comment.