fixed method_missing parameter order
This commit is contained in:
parent
c15e0174c9
commit
d0e763d77e
@ -789,8 +789,8 @@ namespace chaiscript
|
|||||||
auto functions = get_function("method_missing");
|
auto functions = get_function("method_missing");
|
||||||
if (!functions.empty()) {
|
if (!functions.empty()) {
|
||||||
std::vector<Boxed_Value> tmp_params;
|
std::vector<Boxed_Value> tmp_params;
|
||||||
tmp_params.push_back(var(t_name));
|
|
||||||
tmp_params.insert(tmp_params.end(), params.begin(), params.end());
|
tmp_params.insert(tmp_params.end(), params.begin(), params.end());
|
||||||
|
tmp_params.push_back(var(t_name));
|
||||||
return dispatch::dispatch(functions, tmp_params, m_conversions);
|
return dispatch::dispatch(functions, tmp_params, m_conversions);
|
||||||
}
|
}
|
||||||
throw;
|
throw;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user