WaitObjectGroup::WaitObjectAt() always returned the first object.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30451 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2009-04-26 22:52:16 +00:00
parent f5ca983be8
commit 84b7a2d098

View File

@ -134,7 +134,7 @@ ThreadModel::WaitObjectGroup::CountWaitObjects() const
Model::ThreadWaitObject*
ThreadModel::WaitObjectGroup::WaitObjectAt(int32 index) const
{
return index >= 0 && index < fCount ? fWaitObjects[0] : NULL;
return index >= 0 && index < fCount ? fWaitObjects[index] : NULL;
}