correct error in adjustpumpparams() where a curveindex was being used instead of the pump index

This commit is contained in:
james uber
2023-04-22 17:40:25 -04:00
parent 7ae9c28e1a
commit f709c199bc

View File

@@ -1074,7 +1074,7 @@ int adjustpumpparams(Project *pr, int curveIndex)
{ {
// Update its head curve parameters // Update its head curve parameters
pump->Ptype = NOCURVE; pump->Ptype = NOCURVE;
err = updatepumpparams(pr, curveIndex); err = updatepumpparams(pr, j);
if (err > 0) break; if (err > 0) break;
// Convert parameters to internal units // Convert parameters to internal units