Bugfix in function 'mp'

If optional parameter v2 was omitted, evaluation failed.
This commit is contained in:
Alexander Schliebner 2020-03-07 18:52:24 +01:00 committed by GitHub
parent 7df46f051d
commit 2335f2fedd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1512,7 +1512,7 @@ chknext:
(*opp=='>' && fvar1>fvar2) || (*opp=='>' && fvar1>fvar2) ||
(*opp=='=' && fvar1==fvar2)) (*opp=='=' && fvar1==fvar2))
{ {
if (*lp!='<' && *lp!='>' && *lp!='=') { if (*lp!='<' && *lp!='>' && *lp!='=' && *lp!=')' && *lp!=SCRIPT_EOL) {
float fvar3; float fvar3;
lp=GetNumericResult(lp,OPER_EQU,&fvar3,0); lp=GetNumericResult(lp,OPER_EQU,&fvar3,0);
SCRIPT_SKIP_SPACES SCRIPT_SKIP_SPACES