Fixed a very serious runtime error spam that I may have unintentionally caused a while ago. This may or may not actually speed up the server a bit.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1887 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
vageyenaman@gmail.com
2011-07-18 22:58:45 +00:00
parent 0c0e87ce6b
commit 059d93c142

View File

@@ -298,14 +298,16 @@ datum
my_atom.on_reagent_change()
// mix dem viruses
if(R.data && R.data["viruses"] || data &&data["viruses"])
var/list/this = R.data["viruses"]
var/list/that = data["viruses"]
this += that // combine the two
if(R.data && data)
if(R.data && R.data["viruses"] || data && data["viruses"])
var/list/this = R.data["viruses"]
var/list/that = data["viruses"]
this += that // combine the two
for(var/datum/disease/D in this) // makes sure no two viruses are in the reagent at the same time
for(var/datum/disease/d in this)
d.cure(0)
for(var/datum/disease/D in this) // makes sure no two viruses are in the reagent at the same time
for(var/datum/disease/d in this)
if(d != D)
D.cure(0)
return 0