add overriddenSelf initialization for scriptRead

This commit is contained in:
sonil 2023-10-18 13:14:50 +08:00
parent 81fce5f4a2
commit dd03792fbf
1 changed files with 2 additions and 0 deletions

View File

@ -1998,6 +1998,8 @@ static int scriptRead(Script* scr, File* stream)
scr->localVarsCount = 0; scr->localVarsCount = 0;
} }
scr->overriddenSelf = nullptr;
return 0; return 0;
} }