Don't keep re-adding the job orders.

develop
JapaMala 2019-04-27 16:29:30 -05:00
parent 1b387a8ccf
commit 64e0884d95
1 changed files with 1 additions and 0 deletions

@ -431,6 +431,7 @@ static void add_clothing_orders()
{ {
auto race = orderNeeded.first; auto race = orderNeeded.first;
auto amount = orderNeeded.second; auto amount = orderNeeded.second;
orderNeeded.second = 0; //once we get what we need, set it back to zero so we don't add it to further counts.
//Previous operations can easily make this negative. That jus means we have more than we need already. //Previous operations can easily make this negative. That jus means we have more than we need already.
if (amount <= 0) if (amount <= 0)
continue; continue;