Skip to content

Commit b825440

Browse files
Merge branch 'refactor-syntax_unicode_shims_cmdsm' of https://github.com/runrevsebastien/livecode into refactor-syntax_unicode_shims_cmdsm
Conflicts: engine/src/cmdsm.cpp
2 parents 0eea788 + ec60442 commit b825440

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

engine/src/cmdsm.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,11 @@ void MCAdd::exec_ctxt(MCExecContext &ctxt)
221221
return;
222222
}
223223

224-
if (!valueref_tona(ctxt, EE_ADD_BADDEST, *t_dst, &t_dst_as_number))
224+
if (!valueref_tona(ctxt, *t_dst, &t_dst_as_number))
225+
{
226+
ctxt . LegacyThrow(EE_ADD_BADDEST);
225227
return;
228+
}
226229

227230
MCAutoValueRef t_result;
228231
if (MCValueIsArray(*t_src_as_number))

0 commit comments

Comments
 (0)