From 42a03a261865d3eea688295d3e5f26352a9095bb Mon Sep 17 00:00:00 2001 From: ThePhD Date: Thu, 22 Oct 2015 21:46:40 -0400 Subject: [PATCH] proper default error handler --- sol/function.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sol/function.hpp b/sol/function.hpp index 236a8f40..021bca2d 100644 --- a/sol/function.hpp +++ b/sol/function.hpp @@ -193,7 +193,7 @@ public: sol::reference error_handler; function() = default; - function(lua_State* L, int index = -1): reference(L, index) { + function(lua_State* L, int index = -1): reference(L, index), error_handler(default_handler) { type_assert(L, index, type::function); } function(const function&) = default;