From bc9fc4d9cc117eba8d9dce9c38fec158bc5de388 Mon Sep 17 00:00:00 2001 From: Lohikar Date: Wed, 28 Jun 2017 15:13:05 -0500 Subject: [PATCH] Fix a mulebot runtime (#2859) Fixes a runtime that could happen when a MULE was shot. --- code/game/machinery/bots/mulebot.dm | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/code/game/machinery/bots/mulebot.dm b/code/game/machinery/bots/mulebot.dm index e37b4bbdaca..18fc15cfe46 100644 --- a/code/game/machinery/bots/mulebot.dm +++ b/code/game/machinery/bots/mulebot.dm @@ -153,11 +153,7 @@ unload(0) if(prob(25)) src.visible_message("Something shorts out inside [src]!") - var/index = 1<< (rand(0,9)) - if(wires & index) - wires &= ~index - else - wires |= index + wires.RandomCut() ..()