diff --git a/sol/userdata.hpp b/sol/userdata.hpp index fe160ebf..6c317a5e 100644 --- a/sol/userdata.hpp +++ b/sol/userdata.hpp @@ -57,9 +57,9 @@ private: struct constructor { template static void do_constructor(lua_State* L, T* obj, call_syntax syntax, int, types) { - default_construct fx{}; + default_construct fx{}; stack::get_call(L, 1 + static_cast(syntax), fx, types(), obj); - } + } static void match_constructor(lua_State*, T*, call_syntax, int) { throw error("No matching constructor for the arguments provided");