Fix arity of functions

A value was being accessed after it was moved.
This commit is contained in:
Jason Turner
2014-11-03 08:24:02 -07:00
parent 5515d058bb
commit 5d5e881971

View File

@@ -434,8 +434,8 @@ namespace chaiscript
class Proxy_Function_Impl_Base : public Proxy_Function_Base
{
public:
Proxy_Function_Impl_Base(std::vector<Type_Info> t_types)
: Proxy_Function_Base(std::move(t_types), static_cast<int>(t_types.size()) - 1)
Proxy_Function_Impl_Base(const std::vector<Type_Info> &t_types)
: Proxy_Function_Base(t_types, static_cast<int>(t_types.size()) - 1)
{
}