Fix fallout from #114: T is the right thread to use

This commit is contained in:
Arseny Kapoulkine 2021-11-04 10:09:25 -07:00
parent 278e848cc2
commit 98fa75e911

View file

@ -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;
}