From 69c855e4a0918a405b727142ce7271c4a39b45e1 Mon Sep 17 00:00:00 2001 From: covertcorvid <17987483+covertcorvid@users.noreply.github.com> Date: Sat, 14 Oct 2023 11:37:21 -0400 Subject: [PATCH] Fixes a runtime in the power generation crew objective --- nsv13/code/modules/crew_objectives/engineering_objectives.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nsv13/code/modules/crew_objectives/engineering_objectives.dm b/nsv13/code/modules/crew_objectives/engineering_objectives.dm index cceed3c9e4e..3b8ebc8ea1e 100644 --- a/nsv13/code/modules/crew_objectives/engineering_objectives.dm +++ b/nsv13/code/modules/crew_objectives/engineering_objectives.dm @@ -69,8 +69,8 @@ explanation_text = "Maintain production of [target_amount] Watts in an engine until the end of the shift." /datum/objective/crew/power_generation/check_completion() - if(SD.last_power_produced >= target_amount) + if(SD?.last_power_produced >= target_amount) return TRUE - if(RBMK.last_power_produced >= target_amount) + if(RBMK?.last_power_produced >= target_amount) return TRUE return FALSE