[MIRROR] Removes Null Close (#10967)

Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-05-28 11:13:59 -07:00
committed by GitHub
parent 992cd4cd36
commit 9cd438b8db

View File

@@ -320,7 +320,7 @@
return
var/datum/host = src_object.tgui_host(user)
// If the object or user died (or something else), abort.
if(!src_object || !host || !user || !window)
if(QDELETED(src_object) || QDELETED(host) || QDELETED(user) || QDELETED(window))
close(can_be_suspended = FALSE)
return
// Validate ping