mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 23:58:20 +00:00
Bug fix: look up library functions too!
This commit is contained in:
parent
f3339b0906
commit
30efb5d14c
1 changed files with 1 additions and 1 deletions
|
@ -186,7 +186,7 @@ class parser(object):
|
|||
# return (symtab[symbol][1], symtab[symbol][3])
|
||||
return symtab[symbol][1]
|
||||
scope = symtab[-1]
|
||||
if self.globalmode and symbol not in self.symtab[0]:
|
||||
if self.globalmode and symbol not in self.symtab[0] and symbol not in self.functions:
|
||||
return None # Disallow forwards in global var mode
|
||||
if symbol not in self.globals:
|
||||
return None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue