1
0
Fork 0

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

pull/10581/head
Loïc Guilloux 2023-01-29 23:27:29 +01:00 committed by Michael Lutz
parent f6170ec782
commit 6b36f07eb8
1 changed files with 1 additions and 1 deletions

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();