Added a small protection

This commit is contained in:
TraYali 2024-03-19 20:48:19 +01:00
parent 098d944793
commit 2e7f76aea1

View file

@ -56,6 +56,9 @@ void Port::fixCurrent() {
if(this->currentFixed) { if(this->currentFixed) {
return; return;
} }
if(this->parameters.size() < 8) {
return;
}
if(this->parameters.at(7).get()->getValue().first.f == 0) { if(this->parameters.at(7).get()->getValue().first.f == 0) {
return; return;
} }