Truly, I am a spectacular idiot...

This commit is contained in:
ThePhD 2016-09-19 01:17:58 -04:00
parent 89107d3b90
commit 8c9c662d97
2 changed files with 4 additions and 4 deletions

View File

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

View File

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