Merge pull request #241 from Blackth0rn/fix/#240_incorrect_passenger_counts

Fix/#240 incorrect passenger counts
This commit is contained in:
William
2018-04-13 16:20:52 +10:00
committed by GitHub
4 changed files with 31 additions and 1 deletions

View File

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