Fix Thread State for Script Functions and cellphone_flashhand (#3619)

This commit is contained in:
Arthur
2024-08-26 00:16:56 +03:00
committed by GitHub
parent c36981a0e4
commit 2519de72f6
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -161,7 +161,7 @@ namespace lua::scr_function
stack[ctx.m_stack_pointer++] = 0;
ctx.m_instruction_pointer = instruction_pointer;
ctx.m_state = rage::eThreadState::idle;
ctx.m_state = rage::eThreadState::running;
big::g_pointers->m_gta.m_script_vm(stack, big::g_pointers->m_gta.m_script_globals, program, &ctx);
@@ -313,7 +313,7 @@ namespace lua::scr_function
stack[ctx.m_stack_pointer++] = 0;
ctx.m_instruction_pointer = instruction_pointer;
ctx.m_state = rage::eThreadState::idle;
ctx.m_state = rage::eThreadState::running;
big::g_pointers->m_gta.m_script_vm(stack, big::g_pointers->m_gta.m_script_globals, program, &ctx);
+1 -1
View File
@@ -55,7 +55,7 @@ namespace big
stack[ctx.m_stack_pointer++] = 0;
ctx.m_instruction_pointer = ip;
ctx.m_state = rage::eThreadState::idle;
ctx.m_state = rage::eThreadState::running;
g_pointers->m_gta.m_script_vm(stack, g_pointers->m_gta.m_script_globals, program, &ctx);
+1 -1
View File
@@ -94,7 +94,7 @@ namespace big
{
if (script && script->m_script_hash == "cellphone_flashhand"_J)
{
is_using_cellphone = script->m_context.m_state == rage::eThreadState::running;
is_using_cellphone = script->m_context.m_state == rage::eThreadState::idle;
}
}