fixes a thing
Previously, if a wound was removed while there wasa surgery related to it going on, it'd just qdel() the surgery, which is.. kinda weird, since it, y'know, takes the closing step away from you, and all wound surgeries have checks for no wound being present anyways.
This commit is contained in:
@@ -91,8 +91,6 @@
|
||||
var/wound_flags = (FLESH_WOUND | BONE_WOUND | ACCEPTS_GAUZE)
|
||||
|
||||
/datum/wound/Destroy()
|
||||
if(attached_surgery)
|
||||
QDEL_NULL(attached_surgery)
|
||||
if(limb?.wounds && (src in limb.wounds)) // destroy can call remove_wound() and remove_wound() calls qdel, so we check to make sure there's anything to remove first
|
||||
remove_wound()
|
||||
limb = null
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
/////BURN FIXING SURGERIES//////
|
||||
/////PUNCTURE FIXING SURGERIES//////
|
||||
|
||||
//the step numbers of each of these two, we only currently use the first to switch back and forth due to advancing after finishing steps anyway
|
||||
#define REALIGN_INNARDS 1
|
||||
|
||||
Reference in New Issue
Block a user