diff --git a/src/apps/debugger/value/value_nodes/ArrayValueNode.cpp b/src/apps/debugger/value/value_nodes/ArrayValueNode.cpp index bc05323c02..301361e66e 100644 --- a/src/apps/debugger/value/value_nodes/ArrayValueNode.cpp +++ b/src/apps/debugger/value/value_nodes/ArrayValueNode.cpp @@ -137,13 +137,13 @@ AbstractArrayValueNode::CreateChildrenInRange(int32 lowIndex, fLowerBound = lowerBound; fUpperBound = upperBound; fBoundsInitialized = true; - } else { - if (lowIndex < fLowerBound) - fLowerBound = lowIndex; - if (highIndex > fUpperBound) - fUpperBound = highIndex; } + if (lowIndex < fLowerBound) + lowIndex = fLowerBound; + if (highIndex > fUpperBound) + highIndex = fUpperBound; + // create children for the array elements for (int32 i = lowIndex; i <= highIndex; i++) { BString name(Name());