Fixes flaky heart create & destroy run (#96409)

## About The Pull Request

The timer's callback was holding onto a reference

closes #96408

## Changelog

No user facing changes
This commit is contained in:
mrmanlikesbt
2026-06-11 03:13:18 +02:00
committed by GitHub
parent e98d9b6667
commit 21c0b0ce97
@@ -48,13 +48,11 @@
/obj/item/organ/heart/Remove(mob/living/carbon/heartless, special, movement_flags)
. = ..()
if(!special)
addtimer(CALLBACK(src, PROC_REF(stop_if_unowned)), 12 SECONDS)
addtimer(CALLBACK(src, PROC_REF(stop_if_unowned)), 12 SECONDS, TIMER_DELETE_ME)
beat = BEAT_NONE
owner?.stop_sound_channel(CHANNEL_HEARTBEAT)
/obj/item/organ/heart/proc/stop_if_unowned()
if(QDELETED(src))
return
if(IS_ROBOTIC_ORGAN(src))
return
if(isnull(owner))