Prevent crash if no or not enough coeffs are given.
r is then probably not the repeat coefficient.
This commit is contained in:
parent
3420e66705
commit
cb9cc7140d
|
|
@ -131,6 +131,12 @@ VSRCparam(int param, IFvalue *value, GENinstance *inst, IFvalue *select)
|
||||||
here->VSRCrGiven = FALSE;
|
here->VSRCrGiven = FALSE;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!here->VSRCcoeffs || here->VSRCfunctionOrder < 2) {
|
||||||
|
here->VSRCrGiven = FALSE;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
here->VSRCr = value->rValue;
|
here->VSRCr = value->rValue;
|
||||||
here->VSRCrGiven = TRUE;
|
here->VSRCrGiven = TRUE;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue