For real fixes smeses charge on construction

For real fixes smeses charge on construction
Fixes https://github.com/tgstation/-tg-station/issues/14806
This commit is contained in:
Razharas
2016-01-23 18:17:01 +03:00
parent 739d98a9d9
commit d6ddcf6b4c
+1 -1
View File
@@ -81,7 +81,7 @@
MC += PC.maxcharge
C += PC.charge
capacity = MC / (15000) * 1e6
if(!charge)
if(!initial(charge))
charge = C / 15000 * 1e6
/obj/machinery/power/smes/attackby(obj/item/I, mob/user, params)