Fix thruster warning bug

This commit is contained in:
Colin McLeod
2016-03-06 20:24:33 -08:00
parent f51998b1c2
commit b04c2ed2f5

View File

@@ -171,7 +171,7 @@ export default class StandardSlotSection extends SlotSection {
onSelect={select.bind(this, st[1])}
selected={currentMenu == st[1]}
ship={ship}
warning={m => m.maxmass < ship.ladenMass}
warning={m => m.maxmass < (ship.ladenMass - st[1].mass + m.mass)}
/>;