[MIRROR] Entertainment monitor nullcheck (#11999)

Co-authored-by: Will <7099514+Willburd@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-11-18 06:18:54 -07:00
committed by GitHub
parent 1976a1c453
commit 1d3affcf62

View File

@@ -160,11 +160,13 @@ GLOBAL_LIST_EMPTY(bodycamera_screens) // CHOMPEdit
if(stat & NOPOWER)
return
showing = WEAKREF(thing)
pinboard.vis_contents = list(thing)
if(pinboard)
pinboard.vis_contents = list(thing)
/obj/machinery/computer/security/telescreen/entertainment/proc/stop_showing()
// Reverse of the above
pinboard.vis_contents = null
if(pinboard)
pinboard.vis_contents = null
showing = null
/obj/machinery/computer/security/telescreen/entertainment/proc/maybe_stop_showing(datum/weakref/thingref)