From ba16ae4b3493bd112be78925c13eea306d6e57ff Mon Sep 17 00:00:00 2001 From: lowercasedonkey <lowercasedonkey@gmail.com> Date: Thu, 22 Oct 2020 00:23:04 -0400 Subject: [PATCH] var name --- src/js/slaveCostJS.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/js/slaveCostJS.js b/src/js/slaveCostJS.js index 425f7d8e1be..d25d6d1471a 100644 --- a/src/js/slaveCostJS.js +++ b/src/js/slaveCostJS.js @@ -1811,20 +1811,20 @@ globalThis.FResultArray = (function() { * @param {App.Entity.SlaveState} slave */ function calcWorksWithRelatives(slave) { - V.slaves.forEach(islave => { - if (isParentP(slave, islave) && sameAssignmentP(slave, islave)) { + V.slaves.forEach(potentialRel => { + if (isParentP(slave, potentialRel) && sameAssignmentP(slave, potentialRel)) { adjustFResult(`Works with their parent(s)`, 1); if (incestBonus) { adjustFResult(`Works with their parent(s): incest bonus`, 1); } } - if (isParentP(islave, slave) && sameAssignmentP(slave, islave)) { + if (isParentP(potentialRel, slave) && sameAssignmentP(slave, potentialRel)) { adjustFResult(`Works with their kid(s)`, 1); if (incestBonus) { adjustFResult(`Works with their kid(s): incest bonus`, 1); } } - if (areSisters(slave, islave) > 0 && sameAssignmentP(slave, islave)) { + if (areSisters(slave, potentialRel) > 0 && sameAssignmentP(slave, potentialRel)) { adjustFResult(`Works with their sibling(s)`, 1); if (incestBonus) { adjustFResult(`Works with their sibling(s): incest bonus`, 1); -- GitLab