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:
parent
f5ca983be8
commit
84b7a2d098
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user