Fix #10361, fe30f66: Don't try to give saved data to a dead script (#10433)

This commit is contained in:
Loïc Guilloux 2023-01-29 23:27:29 +01:00 committed by GitHub
parent 9c915f05ec
commit 07b40c02fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -691,7 +691,7 @@ void ScriptInstance::LoadOnStack(ScriptData *data)
{
ScriptObject::ActiveInstance active(this);
if (data == nullptr) return;
if (this->IsDead() || data == nullptr) return;
HSQUIRRELVM vm = this->engine->GetVM();