Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 43e3405

Browse files
Auto-merge pull request #5972 from runrevmark/fix-prop_used_before_assign_error
[[ Script ]] Fix throwing of 'property used before assigned' error This patch ensures that the key / value list passed to MCErrorCreateAndThrow in the PropertyUsedBeforeAssigned throw function is nullptr terminated.
2 parents 8e9c620 + 090d5e0 commit 43e3405

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

libscript/src/script-error.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ MCScriptThrowPropertyUsedBeforeAssignedError(MCScriptInstanceRef p_instance,
5252
p_instance->module->name,
5353
"property",
5454
MCScriptGetNameOfDefinitionInModule(p_instance->module,
55-
p_property_def));
55+
p_property_def),
56+
nil);
5657
}
5758

5859
bool

0 commit comments

Comments
 (0)