Fixes var edited SMES starting with no charge.

This commit is contained in:
xxalpha
2016-02-04 08:52:26 +00:00
parent 8b10c648e5
commit cdef1324d3
+1 -1
View File
@@ -78,7 +78,7 @@
MC += PC.maxcharge
C += PC.charge
capacity = MC / (15000) * 1e6
if(!initial(charge))
if(!initial(charge) && !charge)
charge = C / 15000 * 1e6
/obj/machinery/power/smes/attackby(obj/item/I, mob/user, params)