set up g_ThreadSlots[slot].id before calling MakeThisThread so it can
use RageThread::GetCurThreadName()
This commit is contained in:
@@ -252,8 +252,8 @@ static struct SetupMainThread
|
|||||||
int slot = FindEmptyThreadSlot();
|
int slot = FindEmptyThreadSlot();
|
||||||
strcpy( g_ThreadSlots[slot].name, "Main thread" );
|
strcpy( g_ThreadSlots[slot].name, "Main thread" );
|
||||||
sprintf( g_ThreadSlots[slot].ThreadFormattedOutput, "Thread: %s", g_ThreadSlots[slot].name );
|
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].id = RageThread::GetCurrentThreadID();
|
||||||
|
g_ThreadSlots[slot].pImpl = MakeThisThread();
|
||||||
}
|
}
|
||||||
} SetupMainThreadObj;
|
} SetupMainThreadObj;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user