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

(cherry picked from commit 07b40c02fe)
pull/484/head
Loïc Guilloux 1 year ago committed by Jonathan G Rennison
parent 9103426898
commit 85a4308741

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

Loading…
Cancel
Save