diff --git a/src/outfile/src/epanet_output.c b/src/outfile/src/epanet_output.c index d1be3b1..0824e6a 100644 --- a/src/outfile/src/epanet_output.c +++ b/src/outfile/src/epanet_output.c @@ -750,7 +750,7 @@ int EXPORT_OUT_API ENR_getNodeResult(ENR_Handle p_handle, int periodIndex, else { for (j = 0; j < NNODERESULTS; j++) - temp[j] = getNodeValue(p_handle, periodIndex, nodeIndex, j); + temp[j] = getNodeValue(p_handle, periodIndex, nodeIndex, j + 1); *outValueArray = temp; *length = NNODERESULTS; @@ -778,7 +778,7 @@ int EXPORT_OUT_API ENR_getLinkResult(ENR_Handle p_handle, int periodIndex, else { for (j = 0; j < NLINKRESULTS; j++) - temp[j] = getLinkValue(p_handle, periodIndex, linkIndex, j); + temp[j] = getLinkValue(p_handle, periodIndex, linkIndex, j + 1); *outValueArray = temp; *length = NLINKRESULTS;