--- src/net/sf/freecol/common/model/WorkLocation.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/net/sf/freecol/common/model/WorkLocation.java b/src/net/sf/freecol/common/model/WorkLocation.java index 504e41d46d7..086689197b2 100644 --- a/src/net/sf/freecol/common/model/WorkLocation.java +++ b/src/net/sf/freecol/common/model/WorkLocation.java @@ -394,7 +394,7 @@ public abstract class WorkLocation extends UnitLocation if ((work = u.getWorkType()) == null) { if (occ != null) work = occ.workType; } - if ((sug = getSuggestion(u, getProductionType(), work)) != null) { + if ((sug = getSuggestion(u, this.productionType, work)) != null) { result.put(u, sug); } } @@ -561,7 +561,7 @@ public abstract class WorkLocation extends UnitLocation final UnitType unitType = unit.getType(); final Turn turn = getGame().getTurn(); return Math.max(0, - (int)applyModifiers(getBaseProduction(getProductionType(), + (int)applyModifiers(getBaseProduction(this.productionType, goodsType, unitType), turn, getProductionModifiers(goodsType, unitType))); -- 2.11.0.rc0.7.gbe5a750 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Freecol-developers mailing list Freecol-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freecol-developers