Fix love.threaderror when the error message is empty.

Fixes #1775
This commit is contained in:
Alex Szpakowski
2022-04-15 23:31:57 -03:00
parent c35356c841
commit e512eff37b
3 changed files with 20 additions and 8 deletions
+2
View File
@@ -46,6 +46,7 @@ public:
virtual ~LuaThread();
void threadFunction();
const std::string &getError() const;
bool hasError() const { return haserror; }
bool start(const std::vector<Variant> &args);
@@ -56,6 +57,7 @@ private:
StrongRef<love::Data> code;
std::string name;
std::string error;
bool haserror;
std::vector<Variant> args;