diff --git a/src/ac/ed/lurg/country/GlobalPrice.java b/src/ac/ed/lurg/country/GlobalPrice.java index bc9bca1ada0a574837a09e0957bf14139298be33..26124311df774fec957acd91868d233ff83f9922 100644 --- a/src/ac/ed/lurg/country/GlobalPrice.java +++ b/src/ac/ed/lurg/country/GlobalPrice.java @@ -97,7 +97,7 @@ public class GlobalPrice implements Serializable { else { if (stockChange == 0 && production == 0) adjustment=1; - else if (stockChange >= 0 && production != 0) // stock increasing, so decrease price. stockChange is positive so adjustment < 1 + else if (stockChange >= 0) // stock increasing, so decrease price. stockChange is positive so adjustment < 1 adjustment = 1 - ModelConfig.MARKET_LAMBA * stockChange/production; else // stock decreasing, so increase price. stockChange is negative so adjustment > 1 adjustment = 1 - ModelConfig.MARKET_LAMBA * stockChange/Math.max(0, stockLevel);