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,6 +298,7 @@ datum
my_atom.on_reagent_change() my_atom.on_reagent_change()
// mix dem viruses // mix dem viruses
if(R.data && data)
if(R.data && R.data["viruses"] || data && data["viruses"]) if(R.data && R.data["viruses"] || data && data["viruses"])
var/list/this = R.data["viruses"] var/list/this = R.data["viruses"]
var/list/that = data["viruses"] var/list/that = data["viruses"]
@@ -305,7 +306,8 @@ datum
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) // makes sure no two viruses are in the reagent at the same time
for(var/datum/disease/d in this) for(var/datum/disease/d in this)
d.cure(0) if(d != D)
D.cure(0)
return 0 return 0