mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-29 15:08:34 +01:00
Converts screen hardref to a weakref (#19443)
* Weakrefs the master object * whoops
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user