Merge pull request #6752 from gemu2015/scripter-bugfix

Scripter bugfix
This commit is contained in:
Theo Arends 2019-10-26 10:40:43 +02:00 committed by GitHub
commit d4421b2d08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 2 deletions

View File

@ -2731,9 +2731,14 @@ int16_t Run_Scripter(const char *type, int8_t tlen, char *js) {
uint8_t index=glob_script_mem.type[ind.index].index;
if ((vtype&STYPE)==0) {
// numeric result
if (ind.bits.settable) {
if (ind.bits.settable || ind.bits.is_filter) {
dfvar=&sysvar;
if (ind.bits.settable) {
sysv_type=ind.index;
} else {
sysv_type=0;
}
} else {
dfvar=&glob_script_mem.fvars[index];
sysv_type=0;