Skip to content

Commit 214cd2f

Browse files
committed
[[ Bug 15190 ]] 'repeat down to' doesn't execute body
The 'RepeatDownToCondition' builtin primitive was incorrectly mapped to 'RepeatUpToCondition'.
1 parent 9ff2397 commit 214cd2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libscript/src/script-object.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ bool MCScriptInitialize(void)
199199
MCScriptContinueHandlerTypeInModule(t_builder, kMCScriptHandlerTypeParameterModeIn, MCNAME("counter"), t_double_type_def);
200200
MCScriptContinueHandlerTypeInModule(t_builder, kMCScriptHandlerTypeParameterModeIn, MCNAME("limit"), t_double_type_def);
201201
MCScriptEndHandlerTypeInModule(t_builder, t_type_index);
202-
MCScriptAddForeignHandlerToModule(t_builder, MCNAME("RepeatDownToCondition"), t_type_index, MCSTR("MCScriptBuiltinRepeatUpToCondition"), t_def_index);
202+
MCScriptAddForeignHandlerToModule(t_builder, MCNAME("RepeatDownToCondition"), t_type_index, MCSTR("MCScriptBuiltinRepeatDownToCondition"), t_def_index);
203203
MCScriptAddExportToModule(t_builder, t_def_index);
204204

205205
MCScriptAddDefinitionToModule(t_builder, t_def_index);

0 commit comments

Comments
 (0)