Changeset - r28293:13ab39ecefa6
[Not reviewed]
master
0 1 0
Loïc Guilloux - 6 months ago 2023-12-14 21:29:44
glx22@users.noreply.github.com
Fix: [Script] Properly store the previous AsyncMode state (#11587)
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/script/api/script_asyncmode.cpp
Show inline comments
 
@@ -39,8 +39,8 @@ ScriptAsyncMode::ScriptAsyncMode(HSQUIRR
 
		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);
 
}
0 comments (0 inline, 0 general)