Skip to content

Commit

Permalink
DIRECTOR: Lingo: Issue warning on handler redefinition
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Aug 3, 2016
1 parent c48f1b5 commit 6dc858a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions engines/director/lingo/lingo-code.cpp
Expand Up @@ -384,6 +384,7 @@ void Lingo::define(Common::String &name, int start, int end, int nargs) {
if (!_handlers.contains(name)) { // Create variable if it was not defined
sym = new Symbol;

warning("Redefining handler '%s'", name.c_str());
delete sym->u.defn;

_handlers[name] = sym;
Expand Down

0 comments on commit 6dc858a

Please sign in to comment.