From 05bc8ebb934569cfe41f9a8381c525d979f67c9f Mon Sep 17 00:00:00 2001 From: Colin McLeod Date: Thu, 3 Mar 2016 19:58:08 -0800 Subject: [PATCH] Fix find lightest shield generator min mass bug --- src/app/shipyard/ModuleSet.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/shipyard/ModuleSet.js b/src/app/shipyard/ModuleSet.js index 43098ed0..0f6c9817 100755 --- a/src/app/shipyard/ModuleSet.js +++ b/src/app/shipyard/ModuleSet.js @@ -135,7 +135,7 @@ export default class ModuleSet { let sg = this.internal.sg[0]; for (let s of this.internal.sg) { - if (s.mass < sg.mass && s.minmass <= hullMass && s.maxmass > hullMass) { + if (s.mass < sg.mass && s.maxmass > hullMass) { sg = s; } }