Fix find lightest shield generator min mass bug

This commit is contained in:
Colin McLeod
2016-03-03 19:58:08 -08:00
parent 09b945d29e
commit 05bc8ebb93

View File

@@ -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;
}
}