diff --git a/lua.cpp b/lua.cpp index b133527..76de67c 100644 --- a/lua.cpp +++ b/lua.cpp @@ -422,6 +422,7 @@ const char boot[] = "function init()mode(1)cls()play('o5l0v5cegv4cegv3cegv2cegv1 void lua_init(const char* filename, const bool start_playing) { if (lua_state != STATE_STOPPED) lua_quit(); L = luaL_newstate(); + luaL_openlibs(L); //init_exists = update_exists = false; bool file_loaded = true; diff --git a/lua/lua.hpp b/lua/lua.hpp index dd1ae9c..8f97ef3 100644 --- a/lua/lua.hpp +++ b/lua/lua.hpp @@ -4,6 +4,6 @@ //extern "C" { #include "lua.h" -//#include "lualib.h" +#include "lualib.h" #include "lauxlib.h" //}