mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Thread:start now clears the thread's error string before starting
This commit is contained in:
@@ -58,7 +58,7 @@ int w_Thread_getError(lua_State *L)
|
||||
{
|
||||
LuaThread *t = luax_checkthread(L, 1);
|
||||
std::string err = t->getError();
|
||||
if (err.length() == 0)
|
||||
if (err.empty())
|
||||
lua_pushnil(L);
|
||||
else
|
||||
luax_pushstring(L, err);
|
||||
|
||||
Reference in New Issue
Block a user