We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f8f9e4 commit 42d2d60Copy full SHA for 42d2d60
source/TextTreeParser.ixx
@@ -337,7 +337,7 @@ TextTree::Node::Type TextTree::Node::GetGenericType() const noexcept
337
TextTree::Node& TextTree::GetNode(uint32_t nodeIndex)
338
{
339
assert(nodeIndex < nodes_.size());
340
- if (nodeIndex > nodes_.size())
+ if (nodeIndex >= nodes_.size())
341
342
return *static_cast<Node*>(nullptr); // Force AV.
343
}
@@ -348,7 +348,7 @@ TextTree::Node& TextTree::GetNode(uint32_t nodeIndex)
348
const TextTree::Node& TextTree::GetNode(uint32_t nodeIndex) const
349
350
351
352
353
354
0 commit comments