Browse Source

0.7.31

fix zeroIvValues
pull/1093/head
lumapu 1 year ago
parent
commit
4831945d3a
  1. 6
      src/app.cpp

6
src/app.cpp

@ -484,6 +484,12 @@ void app:: zeroIvValues(bool checkAvail, bool skipYieldDay) {
pos = iv->getPosByChFld(ch, fld, rec);
iv->setValue(pos, rec, 0.0f);
}
// zero max power
if(!skipYieldDay) {
pos = iv->getPosByChFld(ch, FLD_MP, rec);
iv->setValue(pos, rec, 0.0f);
}
iv->doCalculations();
}
changed = true;

Loading…
Cancel
Save