Merge pull request #10767 from farie82/virology-hotfix

Fixes the virus referencing bug
This commit is contained in:
variableundefined
2019-01-29 16:32:24 +08:00
committed by GitHub
+4 -3
View File
@@ -722,9 +722,10 @@ var/const/INGEST = 2
// that could possibly eat up a lot of memory needlessly
// if most data lists are read-only.
if(trans_data["viruses"])
var/list/v = trans_data["viruses"]
trans_data["viruses"] = v.Copy()
var/list/temp = list()
for(var/datum/disease/v in trans_data["viruses"])
temp.Add(v.Copy())
trans_data["viruses"] = temp
return trans_data
///////////////////////////////////////////////////////////////////////////////////