Apply discounts when ship updates

This commit is contained in:
Cmdr McDonald
2016-10-17 19:30:58 +01:00
parent 09895852c3
commit cd87184169

View File

@@ -606,6 +606,7 @@ export default class CostSection extends TranslatedComponent {
}
if (nextProps.ship != this.props.ship || nextProps.code != this.props.code) {
nextProps.ship.applyDiscounts(Persist.getShipDiscount(), Persist.getModuleDiscount());
this._updateAmmoCosts(nextProps.ship);
this._updateRetrofit(nextProps.ship, retrofitShip);
this._sortCost(nextProps.ship);