Fix issue where torpedo special effects were not showing

This commit is contained in:
Cmdr McDonald
2017-05-30 19:44:35 +01:00
parent 30a8a29ce3
commit 77018cc1ad
2 changed files with 2 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
#2.3.6
* Update miner role to provide better defaults
* Fix issue where torpedo special effects were not showing
#2.3.5
* Ensure that hidden blueprint effects are applied when a blueprint is selected

View File

@@ -88,7 +88,7 @@ export default class ModificationsMenu extends TranslatedComponent {
const translate = language.translate;
const specials = [];
const specialsId = m.missile ? 'specials_' + m.missile : 'specials';
const specialsId = m.missile && Modifications.modules[m.grp]['specials_' + m.missile] ? 'specials_' + m.missile : 'specials';
if (Modifications.modules[m.grp][specialsId] && Modifications.modules[m.grp][specialsId].length > 0) {
const close = this._specialSelected.bind(this, null);
specials.push(<div style={{ cursor: 'pointer' }} key={ 'none' } onClick={ close }>{translate('PHRASE_NO_SPECIAL')}</div>);