diff --git a/ssc/cmod_singleowner_heat.cpp b/ssc/cmod_singleowner_heat.cpp index a739e1639..1454a9ff6 100644 --- a/ssc/cmod_singleowner_heat.cpp +++ b/ssc/cmod_singleowner_heat.cpp @@ -3994,7 +3994,7 @@ class cm_singleowner_heat : public compute_module std::vector cf_energy_net_vec = as_vector_double("cf_energy_net"); //[kWht] int cf_energy_net_size = cf_energy_net_vec.size(); ssc_number_t* cf_energy_net_heat_btu_arr = allocate("cf_energy_net_heat_btu", cf_energy_net_size); - for (int i = 0; i <= cf_energy_net_size; i++) + for (int i = 0; i < cf_energy_net_size; i++) cf_energy_net_heat_btu_arr[i] = (ssc_number_t)(cf_energy_net_vec[i] / MMBTU_TO_KWh); //[MMBtu] }