Skip to content

Commit 941eaa8

Browse files
Ensure LCB handler calls use the correct register mapping
This fixes inout/out parameters misbehaving in some circumstances.
1 parent 1b1ecb7 commit 941eaa8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libscript/src/script-execute.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,7 @@ MCScriptExecuteContext::PopFrame(uindex_t p_result_reg)
900900
}
901901

902902
// Now copy back the out parameters - if any.
903-
if (m_frame->mapping != nil)
903+
if (t_popped_frame->mapping != nil)
904904
{
905905
for(uindex_t i = 0; i < t_parameter_count; i++)
906906
{

0 commit comments

Comments
 (0)