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

(cherry picked from commit 07b40c02fe)
This commit is contained in:
Loïc Guilloux
2023-01-29 23:27:29 +01:00
committed by Jonathan G Rennison
parent 9103426898
commit 85a4308741

View File

@@ -714,7 +714,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();