Fixed loop hole where dimensions weren't expected for number and string type members

This commit is contained in:
n00b87
2024-04-27 11:45:35 -05:00
parent db229aece8
commit 5d1143b8b9
2 changed files with 21 additions and 0 deletions

View File

@@ -275,6 +275,20 @@ bool rc_eval(string line)
}
}
if(byref_type_exception.size() > 0)
{
for(int i = 0; i < byref_type_exception.size(); i++)
{
//cout << "type exception: [" << byref_type_exception[i].tk_reg << "] exception_status = " << byref_type_exception[i].exception_used << endl;
if(!byref_type_exception[i].exception_used)
{
rc_setError(byref_type_exception[i].error_log);
return false;
}
}
}
return true;
//if(!eval_expression())