set up g_ThreadSlots[slot].id before calling MakeThisThread so it can

use RageThread::GetCurThreadName()
This commit is contained in:
Glenn Maynard
2004-09-17 02:34:34 +00:00
parent 575727fd46
commit fcfaa2a303
+1 -1
View File
@@ -252,8 +252,8 @@ static struct SetupMainThread
int slot = FindEmptyThreadSlot();
strcpy( g_ThreadSlots[slot].name, "Main thread" );
sprintf( g_ThreadSlots[slot].ThreadFormattedOutput, "Thread: %s", g_ThreadSlots[slot].name );
g_ThreadSlots[slot].pImpl = MakeThisThread();
g_ThreadSlots[slot].id = RageThread::GetCurrentThreadID();
g_ThreadSlots[slot].pImpl = MakeThisThread();
}
} SetupMainThreadObj;