Fixes some runtimes (#3727)

This commit is contained in:
Ron
2017-10-22 02:37:44 +03:00
committed by Erki
parent 42e843d20d
commit 0d0117dcff
13 changed files with 41 additions and 17 deletions
+1 -1
View File
@@ -91,7 +91,7 @@
return
/obj/item/weapon/gun/energy/update_icon()
if(charge_meter)
if(charge_meter && power_supply)
var/ratio = power_supply.charge / power_supply.maxcharge
//make sure that rounding down will not give us the empty state even if we have charge for a shot left.