From ffd1d65cda8bf0b5d9de81dbfe0d58f23957ad1c Mon Sep 17 00:00:00 2001 From: Giacomand Date: Sun, 7 Apr 2013 02:44:27 +0100 Subject: [PATCH] * Fixes a RandomCut() runtime. --- code/datums/wires/wires.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/datums/wires/wires.dm b/code/datums/wires/wires.dm index 8629ff09bf2..95a095920e9 100644 --- a/code/datums/wires/wires.dm +++ b/code/datums/wires/wires.dm @@ -269,7 +269,7 @@ var/const/POWER = 8 /datum/wires/proc/RandomCut() var/r = rand(1, wires.len) - CutWireIndex(wires[r]) + CutWireIndex(r) /datum/wires/proc/CutAll() for(var/i = 1; i < MAX_FLAG && i < (1 << wire_count); i += i)