Converts screen hardref to a weakref (#19443)

* Weakrefs the  master object

* whoops
This commit is contained in:
Cameron Lennox
2026-05-03 19:43:14 -04:00
committed by GitHub
parent 98a56cfde8
commit 1d2cbea8e9
8 changed files with 35 additions and 23 deletions
+3 -2
View File
@@ -653,8 +653,9 @@
else if(alerts && alerts["leashed"])
var/atom/movable/screen/alert/leash_pet/pet_alert = src.alerts["leashed"]
var/obj/item/leash/owner = pet_alert.master
owner.clear_leash()
var/obj/item/leash/owner = pet_alert.master_ref?.resolve()
if(owner)
owner.clear_leash()
log_and_message_admins("used the OOC escape button to get out of a leash.", src)
//Don't appear to be in a vore situation