Merge pull request #5 from ab9rf/labormanager-0.43.03-working

Mysteriously disappearing code reinserted
develop
Kelly Kinkade 2016-12-01 11:12:39 -06:00 committed by GitHub
commit 1fa997612f
1 changed files with 2 additions and 0 deletions

@ -683,6 +683,8 @@ static df::unit_labor construction_build_labor (df::building_actual* b)
// Trade depots and bridges use the last one too
// Must check use mode b/c buildings may have items in them that are not part of the building
df::item* i = 0;
for (auto p = b->contained_items.begin(); p != b->contained_items.end(); p++)
if ((*p)->use_mode == 2)
i = (*p)->item;