Fix EN_setnodevalue for EN_MINLEVEL

Vmin was not updated correctly
This commit is contained in:
Elad Salomons
2018-09-06 12:01:09 +03:00
parent 102ac90a98
commit 40a53718cc

View File

@@ -3044,7 +3044,7 @@ int DLLEXPORT EN_setnodevalue(EN_ProjectHandle ph, int index, int code, EN_API_F
if (Tank[j].Vcurve > 0)
return set_error(p->error_handle, 202);
Tank[j].Hmin = Htmp;
Tank[j].Vmin = tankvolume(p, j, Tank[j].Hmin);
Tank[j].Vmin = (Tank[j].Hmin - Node[index].El) * Tank[j].A;
} else {
return set_error(p->error_handle, 251);
}