diff options
| author | Alexander Gavrilov | 2012-04-01 12:50:56 +0400 |
|---|---|---|
| committer | Alexander Gavrilov | 2012-04-01 12:50:56 +0400 |
| commit | a9a6fbd8b597203083eb30e408d3982b01e611b8 (patch) | |
| tree | a2dd6e9c604e051ac859024f23e399059905ac5a /library/LuaTools.cpp | |
| parent | 73cf822a13df614cf009124bd55dcc7f1790d40e (diff) | |
| download | dfhack-a9a6fbd8b597203083eb30e408d3982b01e611b8.tar.gz dfhack-a9a6fbd8b597203083eb30e408d3982b01e611b8.tar.bz2 dfhack-a9a6fbd8b597203083eb30e408d3982b01e611b8.tar.xz | |
Lua tweaks: a couple of functions, dfusion tweak, backtrace metadata.
Diffstat (limited to 'library/LuaTools.cpp')
| -rw-r--r-- | library/LuaTools.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/LuaTools.cpp b/library/LuaTools.cpp index b493f761..68cd8aa3 100644 --- a/library/LuaTools.cpp +++ b/library/LuaTools.cpp @@ -189,7 +189,7 @@ bool DFHack::Lua::Require(color_ostream &out, lua_State *state, static bool load_with_env(color_ostream &out, lua_State *state, const std::string &code, int eidx) { - if (luaL_loadstring(state, code.c_str()) != LUA_OK) + if (luaL_loadbuffer(state, code.data(), code.size(), "=(interactive)") != LUA_OK) { report_error(out, state); return false; |
