Fix runtime when 'item' is null during surgery germs spreading (#13975)

* Fix runtime when 'item' is null during germs spreading

* Change explicit null check to implicit

* Oops
This commit is contained in:
Aziz Chynaliev
2020-08-03 08:28:39 +03:00
committed by GitHub
parent 598388b38c
commit 12c031760a
+1 -1
View File
@@ -196,7 +196,7 @@
if(AStar(E.loc, M.loc, /turf/proc/Distance, 2, simulated_only = 0))
germs++
if(tool.blood_DNA && tool.blood_DNA.len) //germs from blood-stained tools
if(tool && tool.blood_DNA && tool.blood_DNA.len) //germs from blood-stained tools
germs += 30
if(E.internal_organs.len)