Only attempt to initialize a machine's circuit if its actually a type path!

This commit is contained in:
Leshana
2020-04-01 20:36:22 -04:00
parent 23482e88fa
commit 0377e6b4eb

View File

@@ -123,7 +123,7 @@ Class Procs:
..(l)
if(d)
set_dir(d)
if(circuit)
if(ispath(circuit))
circuit = new circuit(src)
/obj/machinery/Initialize()