From bec9d758ce5e372c62b874228bdfc2527a023740 Mon Sep 17 00:00:00 2001 From: Svornost <11434-svornost@users.noreply.gitgud.io> Date: Tue, 16 Feb 2021 01:11:31 -0800 Subject: [PATCH] Don't count slaves transferring out of a division against its housing total. --- src/Corporation/corporate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Corporation/corporate.js b/src/Corporation/corporate.js index d39773d7f8b..91a5714ba1c 100644 --- a/src/Corporation/corporate.js +++ b/src/Corporation/corporate.js @@ -397,7 +397,7 @@ App.Corporate.Init = function() { if (divLedger.market.sell != 0) { return; } let housing = Math.trunc(2 * rate * division.developmentCount); - let unhoused = division.heldSlaves - housing; + let unhoused = division.heldSlaves - housing - divLedger.transfer.total; if (unhoused <= 0) { return; } divLedger.market.sell = unhoused; -- GitLab