From 862cfb57d2aa41f8a4b0ac76c8562c04b95cd739 Mon Sep 17 00:00:00 2001 From: panurgomatic Date: Sun, 2 Oct 2011 01:28:53 +0000 Subject: [PATCH] - Fix for [ issue 157 ] The resources should always recharge now git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2308 316c924e-a436-60f5-8080-3fe189b3f50e --- code/game/machinery/rechargestation.dm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/game/machinery/rechargestation.dm b/code/game/machinery/rechargestation.dm index e9ca6c4c7ad..d04a51e2c86 100644 --- a/code/game/machinery/rechargestation.dm +++ b/code/game/machinery/rechargestation.dm @@ -77,7 +77,9 @@ if(src.occupant) if (istype(occupant, /mob/living/silicon/robot)) var/mob/living/silicon/robot/R = occupant - for(var/obj/O in R) + var/list/um = R.contents|R.module.modules + // ^ makes sinle list of active (R.contents) and inactive modules (R.module.modules) + for(var/obj/O in um) // Engineering if(istype(O,/obj/item/weapon/rcd)) if(O:matter < 30)