From 9f91b55b6e499ec8f9b2ceae61a651c24108c300 Mon Sep 17 00:00:00 2001 From: Colin McLeod Date: Fri, 8 May 2015 21:40:40 -0700 Subject: [PATCH] Fix to unique internal components --- app/js/shipyard/factory-ship.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/js/shipyard/factory-ship.js b/app/js/shipyard/factory-ship.js index bd77b191..b15452b6 100644 --- a/app/js/shipyard/factory-ship.js +++ b/app/js/shipyard/factory-ship.js @@ -149,7 +149,7 @@ angular.module('shipyard').factory('Ship', ['Components', 'calcShieldStrength', if (slot.id != id) { // Selecting a different component var slotIndex = this.internal.indexOf(slot); // Slot is an internal slot, is not being emptied, and the selected component group/type must be of unique - if(slotIndex != -1 && component && (component.grp == 'sg' || component.grp || 'rf')) { + if(slotIndex != -1 && component && (component.grp == 'sg' || component.grp == 'rf')) { // Find another internal slot that already has this type/group installed var similarSlotIndex = this.findInternalByGroup(component.grp); // If another slot has an installed component with of the same type diff --git a/package.json b/package.json index d112d279..7e71c9f8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "coriolis_shipyard", - "version": "0.3.0", + "version": "0.3.1", "repository": { "type": "git", "url": "https://github.com/cmmcleod/coriolis"