mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-15 00:54:16 +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:
@@ -55,6 +55,11 @@
|
||||
var/turf/last_known_position = null
|
||||
var/datum/weakref/last_target = null
|
||||
|
||||
/obj/item/integrated_circuit/smart/targeted_pathfinder/Destroy()
|
||||
. = ..()
|
||||
last_known_position = null
|
||||
last_target = null
|
||||
|
||||
/obj/item/integrated_circuit/smart/targeted_pathfinder/do_work()
|
||||
var/datum/integrated_io/I = inputs[1]
|
||||
set_pin_data(IC_OUTPUT, 1, null)
|
||||
@@ -131,6 +136,11 @@
|
||||
var/turf/last_known_position = null
|
||||
var/datum/weakref/last_target = null
|
||||
|
||||
/obj/item/integrated_circuit/smart/pathfinding_locomotion/Destroy()
|
||||
. = ..()
|
||||
last_known_position = null
|
||||
last_target = null
|
||||
|
||||
/obj/item/integrated_circuit/smart/pathfinding_locomotion/do_work()
|
||||
var/datum/integrated_io/I = inputs[1]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user