From 69f40001440565cc392d0f2094a258f4057948c3 Mon Sep 17 00:00:00 2001 From: Pascal Muetschard Date: Mon, 17 Sep 2018 16:20:36 -0700 Subject: [PATCH] Fix MutationCmdsFor chopping of a command. --- gapis/api/sync/sync.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gapis/api/sync/sync.go b/gapis/api/sync/sync.go index 3311490b9b..c96a1ec6d5 100644 --- a/gapis/api/sync/sync.go +++ b/gapis/api/sync/sync.go @@ -142,7 +142,7 @@ func MutationCmdsFor(ctx context.Context, c *path.Capture, data *Data, cmds []ap transforms.Add(t) } if isTrivial { - return cmds[0:id], nil + return cmds[0 : id+1], nil } w := &writer{rc.NewState(ctx), nil} transforms.Transform(ctx, cmds, w)