Fixes two status effect related hard deletes (#70026)

This commit is contained in:
MrMelbert
2022-09-20 12:23:34 -07:00
committed by GitHub
parent 9cbcd03001
commit 07496cf652
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -303,6 +303,11 @@ or shoot a gun to move around via Newton's 3rd Law of Motion."
var/mob/living/carbon/offerer
var/obj/item/receiving
/atom/movable/screen/alert/give/Destroy()
offerer = null
receiving = null
return ..()
/**
* Handles assigning most of the variables for the alert that pops up when an item is offered
*
@@ -110,6 +110,7 @@
/// or when a status effect with on_remove_on_mob_delete
/// set to FALSE has its mob deleted
/datum/status_effect/proc/be_replaced()
linked_alert = null
owner.clear_alert(id)
LAZYREMOVE(owner.status_effects, src)
owner = null