proper default error handler

This commit is contained in:
ThePhD 2015-10-22 21:46:40 -04:00
parent ad039c8cc2
commit 42a03a2618

View File

@ -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;