mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 09:00:44 +00:00
Fix error with structured object iteration
This commit is contained in:
@@ -94,11 +94,13 @@ void APIInspector::RevealParameter(SDObject *param)
|
||||
{
|
||||
current = next;
|
||||
|
||||
int idx = (int)i;
|
||||
|
||||
// revealing a parameter that wasn't added, bail out now
|
||||
if(i >= parent->childCount() || parent->child((int)i)->tag().value<void *>() != next)
|
||||
if(idx >= parent->childCount() || parent->child(idx)->tag().value<void *>() != next)
|
||||
return;
|
||||
|
||||
item = parent->child((int)i);
|
||||
item = parent->child(idx);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user