diff --git a/src/endWeek/saLongTermEffects.js b/src/endWeek/saLongTermEffects.js index 3d193515fcdc33d587a35ff30ad7f60378ab7ddd..c7450b8d19aa45dc77f930d146825ce96746b1a7 100644 --- a/src/endWeek/saLongTermEffects.js +++ b/src/endWeek/saLongTermEffects.js @@ -1559,7 +1559,7 @@ App.SlaveAssignment.longTermEffects = function saLongTermEffects(slave) { */ function mentalTension(slave) { const pcTraining = V.personalAttention.task === PersonalAttention.TRAINING && !onBedRest(V.PC, true); - const attentionObjective = V.personalAttention.slaves.find((s) => s.ID === slave.ID)?.objective; + const attentionObjective = V.personalAttention.slaves?.find((s) => s.ID === slave.ID)?.objective; if (slave.behavioralFlaw === BehavioralFlaw.NONE) { if (slave.trust < -20 && slave.devotion <= 50) {