diff --git a/src/js/assignJS.tw b/src/js/assignJS.tw index 3e50e02a551e7106830419f7d4dcb296bb1f5efc..eaececf52f45e9e248610b51aa6be055bfe94ab1 100644 --- a/src/js/assignJS.tw +++ b/src/js/assignJS.tw @@ -279,6 +279,9 @@ window.assignJob = function assignJob(slave, job) { r += `${slave.slaveName} no longer has your personal attention.`; } } + if (idx >= 0) + V.slaves[idx] = slave; + return r; }; @@ -454,5 +457,8 @@ window.removeJob = function removeJob(slave, assignment) { slave.choosesOwnAssignment = 0; slave.sentence = 0; } + if (idx >= 0) + V.slaves[idx] = slave; + return r; }; diff --git a/src/js/wombJS.tw b/src/js/wombJS.tw index 0043c87cd4b5873a0dc43a58cde171a61685f9dd..134ddea6cfe46358bcbd805a4b6ca0fa9a6c4006 100644 --- a/src/js/wombJS.tw +++ b/src/js/wombJS.tw @@ -271,7 +271,7 @@ window.WombNormalizePreg = function(actor) window.WombZeroID = function(actor, id) { WombInit(actor); actor.womb - .filter(ft => ft.fatherID === ID) + .filter(ft => ft.fatherID === id) .forEach(ft => ft.fatherID = 0); WombNormalizePreg(actor); };