mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-28 23:59:40 +01:00
[MIRROR] Converts screen hardref to a weakref (#12733)
Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
co-authored by
Cameron Lennox
parent
71a7f938e2
commit
775398d92d
@@ -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