From 51caa503740e7318b59298f2109cd72526683259 Mon Sep 17 00:00:00 2001 From: Huarch <35558361+Huarch@users.noreply.github.com> Date: Mon, 5 Jan 2026 16:58:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=20epanet=5Foutput=20?= =?UTF-8?q?=E8=AF=BB=E5=8F=96=20bin=20=E6=96=87=E4=BB=B6=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/outfile/src/epanet_output.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;