Quick Fix

This fix will make my code more efficients haha

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1914 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
rockdtben
2011-07-24 00:06:23 +00:00
parent d339d37531
commit 04536d308f
+2 -2
View File
@@ -369,7 +369,7 @@
/datum/powernet/proc/merge_powernets(var/datum/powernet/P)
// The powernet that calls this proc will consume the other powernet - Rockdtben
if(nodes.len >= P.nodes)
if(nodes.len >= P.nodes.len)
nodes += P.nodes
else
P.nodes += nodes
@@ -377,7 +377,7 @@
for(var/obj/machinery/power/M in nodes)
M.netnum = number
if(cables.len >= P.cables)
if(cables.len >= P.cables.len)
cables += P.cables
else
P.cables += cables