diff --git a/code/modules/modular_computers/hardware/battery_module.dm b/code/modules/modular_computers/hardware/battery_module.dm index d38e14f7e03..eff3196b584 100644 --- a/code/modules/modular_computers/hardware/battery_module.dm +++ b/code/modules/modular_computers/hardware/battery_module.dm @@ -74,5 +74,6 @@ return ..() /obj/item/computer_hardware/battery_module/proc/charge_to_full() - if(battery) - battery.charge = battery.maxcharge \ No newline at end of file + if(ispath(battery)) + battery = new battery + battery.charge = battery.maxcharge