Fix EmergeThread names in log
authorKahrl <kahrl@gmx.net>
Sun, 19 May 2013 17:58:01 +0000 (19:58 +0200)
committerKahrl <kahrl@gmx.net>
Sun, 19 May 2013 17:58:01 +0000 (19:58 +0200)
Concatenate the thread id as string instead of adding it to the pointer

src/emerge.cpp

index 2d8b01819b08916877ddbd9b1674c557331d49ce..b31a942e37bd80a70478d630f9c0fe1ecabd4a3f 100644 (file)
@@ -349,7 +349,7 @@ bool EmergeThread::getBlockOrStartGen(v3s16 p, MapBlock **b,
 
 void *EmergeThread::Thread() {
        ThreadStarted();
-       log_register_thread("EmergeThread" + id);
+       log_register_thread("EmergeThread" + itos(id));
        DSTACK(__FUNCTION_NAME);
        BEGIN_DEBUG_EXCEPTION_HANDLER