Add overriddenSelf initialization for scriptRead (#329)

This commit is contained in:
sonilyan 2023-10-31 18:46:25 +08:00 committed by GitHub
parent 81fce5f4a2
commit f411d75643
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;
} }