From 5c1a9d9eead39c262e7ac5078d178dc4103dae12 Mon Sep 17 00:00:00 2001 From: Greg Matthews Date: Wed, 11 Apr 2018 21:07:00 -0700 Subject: [PATCH] Fix #240: There is no size 7 passenger cabin so use the new findMaxInternal function to get the biggest one that fits in the slot --- src/app/pages/ShipyardPage.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/pages/ShipyardPage.jsx b/src/app/pages/ShipyardPage.jsx index 1e74466f..edc9a5d9 100644 --- a/src/app/pages/ShipyardPage.jsx +++ b/src/app/pages/ShipyardPage.jsx @@ -42,7 +42,7 @@ function countInt(slot) { passSlotType = 'pcq'; passSlotRating = 'B'; } - let passengerBay = passSlotType ? ModuleUtils.findInternal(passSlotType, slot.maxClass, passSlotRating) : null; + let passengerBay = passSlotType ? ModuleUtils.findMaxInternal(passSlotType, slot.maxClass, passSlotRating) : null; this.maxPassengers += passengerBay ? passengerBay.passengers : 0; }