aboutsummaryrefslogtreecommitdiff
path: root/src/keeper.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/keeper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/keeper.cpp b/src/keeper.cpp
index 8e76247..bb510f4 100644
--- a/src/keeper.cpp
+++ b/src/keeper.cpp
@@ -658,7 +658,7 @@ void init_keepers(Universe* U_, lua_State* L_)
658 STACK_CHECK(K, 0); 658 STACK_CHECK(K, 0);
659 659
660 // copy package.path and package.cpath from the source state 660 // copy package.path and package.cpath from the source state
661 if (luaG_getpackage(L_) != LUA_TNIL) { // L_: settings package K: 661 if (luaG_getmodule(L_, LUA_LOADLIBNAME) != LuaType::NIL) { // L_: settings package K:
662 // when copying with mode LookupMode::ToKeeper, error message is pushed at the top of the stack, not raised immediately 662 // when copying with mode LookupMode::ToKeeper, error message is pushed at the top of the stack, not raised immediately
663 InterCopyContext c{ U_, DestState{ K }, SourceState{ L_ }, {}, SourceIndex{ lua_absindex(L_, -1) }, {}, LookupMode::ToKeeper, {} }; 663 InterCopyContext c{ U_, DestState{ K }, SourceState{ L_ }, {}, SourceIndex{ lua_absindex(L_, -1) }, {}, LookupMode::ToKeeper, {} };
664 if (c.inter_copy_package() != InterCopyResult::Success) { // L_: settings ... error_msg K: 664 if (c.inter_copy_package() != InterCopyResult::Success) { // L_: settings ... error_msg K: