From c6540caf67fbcc256c538e478954458f55525b26 Mon Sep 17 00:00:00 2001 From: ThePhD Date: Thu, 1 Sep 2016 12:36:25 -0400 Subject: [PATCH] herped the derp: gotta leave these things alone... --- sol/protected_function.hpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/sol/protected_function.hpp b/sol/protected_function.hpp index 3672e4d0..05554c2c 100644 --- a/sol/protected_function.hpp +++ b/sol/protected_function.hpp @@ -107,9 +107,6 @@ namespace sol { code = luacall(n, LUA_MULTRET, h); int poststacksize = lua_gettop(base_t::lua_state()); returncount = poststacksize - (stacksize - 1); - if (code != call_status::yielded && code != call_status::ok) { - return protected_function_result(base_t::lua_state(), lua_absindex(base_t::lua_state(), -1), returncount, returncount, code); - } #ifndef SOL_NO_EXCEPTIONS } // Handle C++ errors thrown from C++ functions bound inside of lua