mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 11:43:31 +00:00
Fixes runtime in add_reagent() (#7676)
Bad index: data["species"] when data is not a list
This commit is contained in:
@@ -115,7 +115,7 @@
|
|||||||
for(var/datum/reagent/current in reagent_list)
|
for(var/datum/reagent/current in reagent_list)
|
||||||
if(current.id == id)
|
if(current.id == id)
|
||||||
if(current.id == "blood")
|
if(current.id == "blood")
|
||||||
if(!isnull(data["species"]) && !isnull(current.data["species"]) && data["species"] != current.data["species"]) // Species bloodtypes are already incompatible, this just stops it from mixing into the one already in a container.
|
if(LAZYLEN(data) && !isnull(data["species"]) && !isnull(current.data["species"]) && data["species"] != current.data["species"]) // Species bloodtypes are already incompatible, this just stops it from mixing into the one already in a container.
|
||||||
continue
|
continue
|
||||||
|
|
||||||
current.volume += amount
|
current.volume += amount
|
||||||
|
|||||||
Reference in New Issue
Block a user