Get the current team not using fTaskID, the looper thread, but find_thread(NULL) instead. In InitData() the thread has not been spawned yet.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@456 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2002-07-26 19:51:49 +00:00
parent 3b04471572
commit 92180c47a3

View File

@ -1005,7 +1005,7 @@ void BLooper::InitData()
if (sTeamID == -1)
{
thread_info info;
get_thread_info(fTaskID,&info);
get_thread_info(find_thread(NULL), &info);
sTeamID = info.team;
}