Added a small protection
This commit is contained in:
parent
098d944793
commit
2e7f76aea1
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue