eval parser -> prefer later type name matches to earlier

This commit is contained in:
Ryan Fleury
2024-01-13 21:14:58 -08:00
parent d40c9edb90
commit 625e197bc1
+1 -1
View File
@@ -470,7 +470,7 @@ eval_leaf_type_from_name(RADDBG_Parsed *rdbg, String8 name)
U32 *matches = raddbg_matches_from_map_node(rdbg, node, &match_count);
if(match_count != 0)
{
U32 type_node_idx = matches[0];
U32 type_node_idx = matches[match_count-1];
if(type_node_idx < rdbg->type_node_count)
{
RADDBG_TypeNode *type_node = &rdbg->type_nodes[type_node_idx];