labormanager: fix stupid

develop
Kelly Kinkade 2016-06-28 23:28:44 -05:00
parent 705134975d
commit dbc46c510f
1 changed files with 3 additions and 0 deletions

@ -2337,6 +2337,9 @@ public:
for (auto i = labor_needed.begin(); i != labor_needed.end(); i++)
{
df::unit_labor l = i->first;
if (l == df::unit_labor::NONE)
continue;
if (labor_infos[l].maximum_dwarfs() > 0 &&
i->second > labor_infos[l].maximum_dwarfs())
i->second = labor_infos[l].maximum_dwarfs();