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; }