Fixes a runtime when alien syringes are spawned during map loading (#7734)

Fixes a runtime when alien syringes are spawned during map loading
This commit is contained in:
Meghan-Rossi
2020-10-19 19:22:55 -07:00
committed by GitHub
parent 63b7caae82
commit bd3a9b9223
@@ -551,7 +551,9 @@
var/obj/item/weapon/reagent_containers/syringe/S = new_item
S.volume = 30
S.reagents.maximum_volume = 30
//If S hasn't initialized yet, S.reagents will be null.
//However, in that case Initialize will set the maximum volume to the volume for us, so we don't need to do anything.
S.reagents?.maximum_volume = 30
item_type = new_item.name