diff options
Diffstat (limited to 'src/state.cpp')
-rw-r--r-- | src/state.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/state.cpp b/src/state.cpp index 817d5b4..b52bdb5 100644 --- a/src/state.cpp +++ b/src/state.cpp | |||
@@ -82,7 +82,7 @@ static int luaG_new_require( lua_State* L) | |||
82 | 82 | ||
83 | if( rc != LUA_OK) // LUA_ERRRUN / LUA_ERRMEM ? | 83 | if( rc != LUA_OK) // LUA_ERRRUN / LUA_ERRMEM ? |
84 | { | 84 | { |
85 | return lua_error( L); | 85 | raise_lua_error(L); |
86 | } | 86 | } |
87 | // should be 1 for Lua <= 5.3, 1 or 2 starting with Lua 5.4 | 87 | // should be 1 for Lua <= 5.3, 1 or 2 starting with Lua 5.4 |
88 | return lua_gettop(L); // result(s) | 88 | return lua_gettop(L); // result(s) |