Commit 999f4ba5 authored by DailyShana's avatar DailyShana

fix

parent b7f99548
...@@ -608,9 +608,9 @@ interpreter::interpreter(duel* pd): coroutines(256) { ...@@ -608,9 +608,9 @@ interpreter::interpreter(duel* pd): coroutines(256) {
luaL_getsubtable(lua_state, LUA_REGISTRYINDEX, LUA_LOADED_TABLE); luaL_getsubtable(lua_state, LUA_REGISTRYINDEX, LUA_LOADED_TABLE);
lua_pushnil(lua_state); lua_pushnil(lua_state);
lua_setfield(lua_state, -2, "io"); lua_setfield(lua_state, -2, "io");
luaL_getsubtable(lua_state, LUA_REGISTRYINDEX, LUA_LOADED_TABLE);
lua_pushnil(lua_state); lua_pushnil(lua_state);
lua_setfield(lua_state, -2, "os"); lua_setfield(lua_state, -2, "os");
lua_pop(lua_state, 1);
//open all libs //open all libs
luaL_newlib(lua_state, cardlib); luaL_newlib(lua_state, cardlib);
lua_pushstring(lua_state, "__index"); lua_pushstring(lua_state, "__index");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment