From 21410f9883ede39f9f8833c8576190a66b30b164 Mon Sep 17 00:00:00 2001 From: Arkerthan <arkerthan@mailbox.org> Date: Mon, 12 Sep 2022 19:08:54 +0200 Subject: [PATCH] Fix defaulting to diet if no muscle rules exist giving errors --- src/js/DefaultRules.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/DefaultRules.js b/src/js/DefaultRules.js index 920978bc9d6..4dd106647c5 100644 --- a/src/js/DefaultRules.js +++ b/src/js/DefaultRules.js @@ -1663,7 +1663,7 @@ globalThis.DefaultRules = function(slave) { message(`${slave.slaveName} has been put on a muscle building exercise regime.`, sourceRecord.muscles.val); } } else if (!isAmputee(slave) && ["slimming", "muscle building"].includes(slave.diet)) { - message(`${slave.slaveName} is at the target musculature, so ${his} diet has been normalized.`, sourceRecord.muscles.val); + message(`${slave.slaveName} is at the target musculature, so ${his} diet has been normalized.`, sourceRecord.diet); dietRule(slave, rule); } else { dietRule(slave, rule); -- GitLab