fix idx shadowing lookup bug in rdim_bake_name_map_insert

This commit is contained in:
Ryan Fleury
2026-04-20 09:57:34 -07:00
parent 03d1575c85
commit ee2dcbee48
+3 -3
View File
@@ -1810,10 +1810,10 @@ rdim_bake_name_map_insert(RDIM_Arena *arena, RDIM_BakeNameMapTopology *map_topol
RDI_S32 is_duplicate = 0;
for(RDIM_BakeNameChunkNode *n = slot->first; n != 0; n = n->next)
{
for(RDI_U64 idx = 0; idx < n->count; idx += 1)
for(RDI_U64 n_idx = 0; n_idx < n->count; n_idx += 1)
{
if(rdim_str8_match(n->v[idx].string, string, 0) &&
n->v[idx].idx == idx)
if(rdim_str8_match(n->v[n_idx].string, string, 0) &&
n->v[n_idx].idx == idx)
{
is_duplicate = 1;
goto break_all;