Fixed infinite loop in powernet rebuild.

If a /obj/machinery/power wasn't anchored, it wouldn't get a new list of connections, so would endlessly loop on the old list, of which that object was the first entry, ensuring that the loop would never terminate.
This commit is contained in:
Uristqwerty
2013-02-20 14:47:32 -05:00
parent 29f1095a25
commit b1c20c32d7

View File

@@ -186,6 +186,9 @@
M.powernet = PN
P = M.get_connections()
else
return
if(P.len == 0) return
O = P[1]