Skip to content

Commit

Permalink
Fixes a runtime in the power generation crew objective
Browse files Browse the repository at this point in the history
  • Loading branch information
covertcorvid committed Oct 14, 2023
1 parent 459d470 commit 69c855e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nsv13/code/modules/crew_objectives/engineering_objectives.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 69c855e

Please sign in to comment.