diff --git a/code/modules/power/monitor.dm b/code/modules/power/monitor.dm index 199908ba8dd..664317a4572 100644 --- a/code/modules/power/monitor.dm +++ b/code/modules/power/monitor.dm @@ -24,13 +24,18 @@ var/tmp/next_process = 0 //Lists used for the charts. - var/list/demand_hist[POWER_MONITOR_HIST_SIZE] - var/list/supply_hist[POWER_MONITOR_HIST_SIZE] - var/list/load_hist[POWER_MONITOR_HIST_SIZE] + var/list/demand_hist[0] + var/list/supply_hist[0] + var/list/load_hist[0] /obj/machinery/power/monitor/New() ..() + for(var/i = 1 to POWER_MONITOR_HIST_SIZE) //The chart doesn't like lists with null. + demand_hist.Add(list(0)) + supply_hist.Add(list(0)) + load_hist.Add(list(0)) + var/head = {"