From f709c199bca3df710fc6cbb84d69197ecf672a52 Mon Sep 17 00:00:00 2001 From: james uber Date: Sat, 22 Apr 2023 17:40:25 -0400 Subject: [PATCH] correct error in adjustpumpparams() where a curveindex was being used instead of the pump index --- src/project.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/project.c b/src/project.c index d5eee6c..a9a9df0 100644 --- a/src/project.c +++ b/src/project.c @@ -1074,7 +1074,7 @@ int adjustpumpparams(Project *pr, int curveIndex) { // Update its head curve parameters pump->Ptype = NOCURVE; - err = updatepumpparams(pr, curveIndex); + err = updatepumpparams(pr, j); if (err > 0) break; // Convert parameters to internal units