Fix crash when clearing a speical

This commit is contained in:
Cmdr McDonald
2017-04-20 13:17:30 +01:00
parent 4ea0bbfb93
commit 1516bd4fc0
2 changed files with 4 additions and 1 deletions

View File

@@ -1,3 +1,6 @@
#2.3.4
* Fix crash when removing the special effect from a module
#2.3.3 #2.3.3
* Remove unused blueprint when hitting reset * Remove unused blueprint when hitting reset
* Add 'purchase module' external link to EDDB for refit items * Add 'purchase module' external link to EDDB for refit items

View File

@@ -156,7 +156,7 @@ export default class ModificationsMenu extends TranslatedComponent {
const { m, ship } = this.props; const { m, ship } = this.props;
if (special === null) { if (special === null) {
ship.clearModuelSpecial(m); ship.clearModuleSpecial(m);
} else { } else {
ship.setModuleSpecial(m, Modifications.specials[special]); ship.setModuleSpecial(m, Modifications.specials[special]);
} }