From 84b7a2d098dc9abf12ac5c2d1be7f89db444e7cb Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Sun, 26 Apr 2009 22:52:16 +0000 Subject: [PATCH] WaitObjectGroup::WaitObjectAt() always returned the first object. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30451 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/debuganalyzer/model/ThreadModel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/debuganalyzer/model/ThreadModel.h b/src/apps/debuganalyzer/model/ThreadModel.h index 6d63e76d76..8e21644123 100644 --- a/src/apps/debuganalyzer/model/ThreadModel.h +++ b/src/apps/debuganalyzer/model/ThreadModel.h @@ -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; }