Merge pull request #9247 from VOREStation/upstream-merge-7734

[MIRROR] Fixes a runtime when alien syringes are spawned during map loading
This commit is contained in:
Novacat
2020-10-19 23:18:14 -04:00
committed by GitHub
@@ -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