(Partially) Fixes Out Of Memory crashes (#17043)

* Fixes massive memory leak

* Brain Runtime Fix

* There was no reason for this to be a spawn(0)

And no I didn't spawn with no blood - https://i.imgur.com/vPizqCD.png

* Fixes deadringer not properly deathgasping the right entity

* Wounds properly get delted off destroyed limbs

* Update vorestation.dme

* Runtime fix & DNA lock fix

* More qdels

* qdel

* comment out
This commit is contained in:
Cameron Lennox
2025-02-05 14:02:17 -05:00
committed by GitHub
parent f43b7a1d88
commit 2e4f1ce642
30 changed files with 126 additions and 69 deletions
@@ -278,6 +278,8 @@ SUBSYSTEM_DEF(transcore)
// Called from body_record to add itself to the transcore.
/datum/transcore_db/proc/add_body(var/datum/transhuman/body_record/BR)
ASSERT(BR)
if(body_scans[BR.mydna.name])
qdel(body_scans[BR.mydna.name])
body_scans[BR.mydna.name] = BR
body_scans = sortAssoc(body_scans)
log_debug("Added [BR.mydna.name] to transcore body DB.")