mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
ops
This commit is contained in:
@@ -292,7 +292,7 @@ static void singlevar(LexState *ls, TaggedString *n, vardesc *var, int32 prev) {
|
||||
var->info = i;
|
||||
} else { // check shadowing
|
||||
FuncState *level = fs;
|
||||
while (level = level->prev)
|
||||
while ((level = level->prev))
|
||||
if (aux_localname(level, n) >= 0)
|
||||
luaX_syntaxerror(ls, "cannot access a variable in outer scope", n->str);
|
||||
var->k = VGLOBAL;
|
||||
|
||||
Reference in New Issue
Block a user