1
0
Fork 0

Fix: [Script] Properly store the previous AsyncMode state (#11587)

pull/11589/head
Loïc Guilloux 2023-12-14 22:29:44 +01:00 committed by GitHub
parent bbf3028f89
commit 7726f8f245
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -39,8 +39,8 @@ ScriptAsyncMode::ScriptAsyncMode(HSQUIRRELVM vm)
throw sq_throwerror(vm, "Argument must be a boolean");
}
this->last_mode = this->GetDoCommandMode();
this->last_instance = this->GetDoCommandModeInstance();
this->last_mode = this->GetDoCommandAsyncMode();
this->last_instance = this->GetDoCommandAsyncModeInstance();
this->SetDoCommandAsyncMode(sqasync ? &ScriptAsyncMode::AsyncModeProc : &ScriptAsyncMode::NonAsyncModeProc, this);
}