GetParentMarker: Search children if first child is less than eventId

Handle case where action->eventId > eventId but the action contains the event being searched for
This commit is contained in:
Jake Turner
2025-12-20 07:26:26 +13:00
parent 191e8cd10d
commit 3c407eee51
+8 -1
View File
@@ -1904,7 +1904,14 @@ static const ActionDescription *GetParentMarker(ICaptureContext &ctx, uint32_t e
}
}
actions.pop_back();
if(action->eventId < eventId)
bool addChildren = (action->eventId < eventId);
if(!addChildren)
{
if(!action->children.empty())
addChildren = action->children[0].eventId < eventId;
}
if(addChildren)
{
for(const ActionDescription &child : action->children)
actions.push_back(&child);