From 2826a1f8c0e6eaa3fca44892cc8d735293e61179 Mon Sep 17 00:00:00 2001 From: ThePhD Date: Wed, 30 Mar 2016 02:21:52 -0400 Subject: [PATCH] unused q_q --- sol/function_types.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sol/function_types.hpp b/sol/function_types.hpp index 0208b128..ef2e13d0 100644 --- a/sol/function_types.hpp +++ b/sol/function_types.hpp @@ -126,7 +126,7 @@ struct pusher> { static void select_reference_member_function(std::true_type, lua_State* L, Fx&& fx, T&& obj, Args&&... args) { typedef std::decay_t dFx; dFx memfxptr(std::forward(fx)); - auto userptr = detail::ptr(std::forward(obj)); + auto userptr = detail::ptr(std::forward(obj), std::forward(args)...); lua_CFunction freefunc = &function_detail::upvalue_member_function, meta::Unqualified>::call; int upvalues = stack::stack_detail::push_as_upvalues(L, memfxptr);