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

Commit d76fe3a

Browse files
authored
Merge pull request #5972 from runrevmark/fix-prop_used_before_assign_error
[[ Script ]] Fix throwing of 'property used before assigned' error
2 parents 8e9c620 + 090d5e0 commit d76fe3a

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)