Fixes uplink_purchase_log GC error (#34119)

* Fixes uplink_purchase_log GC error

* Add missing GLOB.
This commit is contained in:
Jordan Brown
2018-01-07 16:51:15 -08:00
committed by CitadelStationBot
parent 1f65e222b7
commit 1e2e8b7ecb

View File

@@ -20,6 +20,8 @@ GLOBAL_LIST(uplink_purchase_logs_by_key) //assoc key = /datum/uplink_purchase_lo
/datum/uplink_purchase_log/Destroy()
purchase_log = null
parent = null
if(GLOB.uplink_purchase_logs_by_key[owner] == src)
GLOB.uplink_purchase_logs_by_key -= owner
return ..()
/datum/uplink_purchase_log/proc/MergeWithAndDel(datum/uplink_purchase_log/other)