Skip to content

Commit

Permalink
fix GC deletion issues around reagents
Browse files Browse the repository at this point in the history
  • Loading branch information
fira committed Nov 4, 2023
1 parent d9f179d commit f6f6fd9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,6 @@
if (N)
R.amount_per_transfer_from_this = N

/obj/item/reagent_container/Initialize()
. = ..()
if (!possible_transfer_amounts)
verbs -= /obj/item/reagent_container/verb/set_APTFT //which objects actually uses it?
create_reagents(volume)

/obj/item/reagent_container/Destroy()
possible_transfer_amounts = null
return ..()
Expand Down
1 change: 1 addition & 0 deletions code/modules/reagents/Chemistry-Holder.dm
Original file line number Diff line number Diff line change
Expand Up @@ -713,5 +713,6 @@
// Convenience proc to create a reagents holder for an atom
// Max vol is maximum volume of holder
/atom/proc/create_reagents(max_vol)
QDEL_NULL(reagents)
reagents = new/datum/reagents(max_vol)
reagents.my_atom = src

0 comments on commit f6f6fd9

Please sign in to comment.