From 8c9c662d97260be214ae15e862392388c57477a9 Mon Sep 17 00:00:00 2001 From: ThePhD Date: Mon, 19 Sep 2016 01:17:58 -0400 Subject: [PATCH] Truly, I am a spectacular idiot... --- single/sol/sol.hpp | 6 +++--- sol/state_view.hpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/single/sol/sol.hpp b/single/sol/sol.hpp index 4dc7c3bf..760f0317 100644 --- a/single/sol/sol.hpp +++ b/single/sol/sol.hpp @@ -20,8 +20,8 @@ // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // This file was generated with a script. -// Generated 2016-09-19 04:36:16.270592 UTC -// This header was generated with sol v2.14.2 (revision 431c629) +// Generated 2016-09-19 05:17:09.304397 UTC +// This header was generated with sol v2.14.2 (revision 89107d3) // https://github.com/ThePhD/sol2 #ifndef SOL_SINGLE_INCLUDE_HPP @@ -11739,7 +11739,7 @@ namespace sol { function_result script_file(const std::string& filename) { int index = (::std::max)(lua_gettop(L), 1); stack::script_file(L, filename); - int returns = lua_gettop(L) - index; + int returns = lua_gettop(L) - (index - 1); return function_result(L, index, returns); } diff --git a/sol/state_view.hpp b/sol/state_view.hpp index 9270b67f..3efb3674 100644 --- a/sol/state_view.hpp +++ b/sol/state_view.hpp @@ -232,7 +232,7 @@ namespace sol { function_result script_file(const std::string& filename) { int index = (::std::max)(lua_gettop(L), 1); stack::script_file(L, filename); - int returns = lua_gettop(L) - index; + int returns = lua_gettop(L) - (index - 1); return function_result(L, index, returns); }