From e7debd0366462c7e9b5211af825618df1b9d36e2 Mon Sep 17 00:00:00 2001 From: Pregmodder <pregmodder@gmail.com> Date: Thu, 30 May 2019 08:03:27 -0700 Subject: [PATCH] Corrected wrong variable clamp fixes #786 --- src/js/generateNewSlaveJS.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/generateNewSlaveJS.js b/src/js/generateNewSlaveJS.js index df9f911a42d..c781796185f 100644 --- a/src/js/generateNewSlaveJS.js +++ b/src/js/generateNewSlaveJS.js @@ -1698,7 +1698,7 @@ window.GenerateNewSlave = (function() { } if (slave.geneticQuirks.wLoss === 2) { slave.weight -= jsRandom(10, 50); - slave.weight = Math.clamp(slave.muscles, -100, 200); + slave.weight = Math.clamp(slave.weight, -100, 200); slave.weightDirection = -1; } if (slave.geneticQuirks.androgyny === 2) { -- GitLab