diff --git a/src/scripts.cc b/src/scripts.cc index 1485fff..7c8755c 100644 --- a/src/scripts.cc +++ b/src/scripts.cc @@ -1998,6 +1998,8 @@ static int scriptRead(Script* scr, File* stream) scr->localVarsCount = 0; } + scr->overriddenSelf = nullptr; + return 0; }