diff --git a/src/endWeek/reports/spaReport.js b/src/endWeek/reports/spaReport.js index 38482a44d0bf2aa936a9c77b7a3466d0879f38e8..cc22b8b7afdc2671d531958f86684a05a8fc3732 100644 --- a/src/endWeek/reports/spaReport.js +++ b/src/endWeek/reports/spaReport.js @@ -116,9 +116,9 @@ App.EndWeek.spaReport = function() { slave.behavioralFlaw = either("hates men", "odd"); slave.fetish = "none"; slave.fetishKnown = 1; - const spr = V.genePool.findIndex(function(s) { return s.ID === slave.ID; }); - if (V.genePool[spr].intelligence >= -95) { - slave.intelligence = V.genePool[spr].intelligence - 30; + const gp = V.genePool.find(s => s.ID === slave.ID); + if (gp.intelligence >= -95) { + slave.intelligence = gp.intelligence - 30; } if (V.arcologies[0].FSPaternalist !== "unset" && V.arcologies[0].FSPaternalist > 0) { curedArray.push(`Society <span class="green">strongly approves</span> of${slave.slaveName} being restored to sanity, which advances ideals about enlightened slaveownership.`);