Skip to content

Commit

Permalink
DIRECTOR: Lingo: Actually let VOID vars to pass.
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Aug 3, 2016
1 parent 9fff652 commit 19ae959
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions engines/director/director.cpp
Expand Up @@ -96,6 +96,7 @@ put par3\n\

_lingo->addCode("check(1, 2, 3)\n\
check 4, 5, 6\n\
check 7, 8\n\
", kMovieScript, 2);

_lingo->executeScript(kMovieScript, 2);
Expand Down
5 changes: 1 addition & 4 deletions engines/director/lingo/lingo-code.cpp
Expand Up @@ -145,12 +145,9 @@ bool Lingo::verify(Symbol *s) {
return false;
}

if (s->type == VOID) {
if (s->type == VOID)
warning("Variable used before assigning a value '%s'", s->name);

return false;
}

return true;
}

Expand Down

0 comments on commit 19ae959

Please sign in to comment.