mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-20 19:44:46 +01:00
Weakref cleanup (#19382)
* oh god help * fixes * oops * container runtime --------- Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
@@ -31,6 +31,10 @@
|
||||
if (source)
|
||||
src.source_ref = WEAKREF(source)
|
||||
|
||||
/datum/browser/Destroy(force)
|
||||
. = ..()
|
||||
source_ref = null
|
||||
|
||||
/datum/browser/proc/user_deleted(datum/source)
|
||||
SIGNAL_HANDLER
|
||||
user = null
|
||||
|
||||
@@ -55,6 +55,10 @@
|
||||
if(usr)
|
||||
user = WEAKREF(usr)
|
||||
|
||||
/datum/callback/Destroy(force)
|
||||
. = ..()
|
||||
user = null
|
||||
|
||||
/world/proc/ImmediateInvokeAsync(thingtocall, proctocall, ...)
|
||||
set waitfor = FALSE
|
||||
|
||||
|
||||
@@ -71,6 +71,10 @@
|
||||
antag_holder = new
|
||||
..()
|
||||
|
||||
/datum/mind/Destroy(force)
|
||||
. = ..()
|
||||
original_character = null
|
||||
|
||||
/datum/mind/proc/transfer_to(mob/living/new_character, force = FALSE)
|
||||
if(!istype(new_character))
|
||||
log_world("## DEBUG: transfer_to(): Some idiot has tried to transfer_to() a non mob/living mob. Please inform Carn")
|
||||
|
||||
Reference in New Issue
Block a user