mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-18 00:49:19 +02:00
fixup
This commit is contained in:
2
lua.cpp
2
lua.cpp
@@ -32,7 +32,7 @@ lua::~lua()
|
|||||||
void lua::interpret(std::string file)
|
void lua::interpret(std::string file)
|
||||||
{
|
{
|
||||||
if (luaL_dofile(state, file.c_str())) {
|
if (luaL_dofile(state, file.c_str())) {
|
||||||
char *str = lua_tostring(state, -1);
|
const char *str = lua_tostring(state, -1);
|
||||||
ErrorLog(std::string(str), logtype::lua);
|
ErrorLog(std::string(str), logtype::lua);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user