Skip to content

Commit

Permalink
[MIRROR] Fixes a race condition in mutations code [MDB IGNORE] (#718)
Browse files Browse the repository at this point in the history
* Fixes a race condition in mutations code (#79829)
---------

Co-authored-by: SkyratBot <[email protected]>
Co-authored-by: Bloop <[email protected]>
  • Loading branch information
3 people authored Nov 19, 2023
1 parent 9e9e343 commit d49ba6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/datums/mutations/_mutations.dm
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@
* returns an instance of a power if modification was complete
*/
/datum/mutation/human/proc/modify()
if(modified || !power_path || !owner)
if(modified || !power_path || QDELETED(owner))
return
var/datum/action/cooldown/modified_power = locate(power_path) in owner.actions
if(!modified_power)
Expand Down

0 comments on commit d49ba6f

Please sign in to comment.