Upstream - Organ insert/remove fixes

Temp fixes another race condition inside NIF code
This commit is contained in:
Majkl-J
2025-03-05 13:22:16 +01:00
committed by Waterpig
parent 90a4473d3f
commit 892dfe468f
6 changed files with 10 additions and 5 deletions
@@ -165,11 +165,14 @@
if(linked_mob)
UnregisterSignal(linked_mob, COMSIG_LIVING_DEATH, PROC_REF(damage_on_death))
linked_mob = null
QDEL_LIST(loaded_nifsofts)
///Installs preinstalled NIFSofts
/obj/item/organ/cyberimp/brain/nif/proc/install_preinstalled_nifsofts()
if(isnull(linked_mob)) // BUBBER TODO: Fix the race condition here
return FALSE
if(!preinstalled_nifsofts)
return FALSE