diff --git a/CLI/Repl.cpp b/CLI/Repl.cpp index f57a500..4968d08 100644 --- a/CLI/Repl.cpp +++ b/CLI/Repl.cpp @@ -175,7 +175,7 @@ static std::string runCode(lua_State* L, const std::string& source) { error = "thread yielded unexpectedly"; } - else if (const char* str = lua_tostring(L, -1)) + else if (const char* str = lua_tostring(T, -1)) { error = str; }