mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-09-10 12:02:53 +02:00
Make Exception::what()
thread-safe
This commit is contained in:
parent
8e85e59ed8
commit
0fb327c93e
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ struct Exception
|
|||
|
||||
const char *what() const
|
||||
{
|
||||
static std::string buf;
|
||||
static thread_local std::string buf;
|
||||
buf.clear();
|
||||
switch (type)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue