summaryrefslogtreecommitdiff
path: root/anim/scenes/sort.zig
diff options
context:
space:
mode:
Diffstat (limited to 'anim/scenes/sort.zig')
-rw-r--r--anim/scenes/sort.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/anim/scenes/sort.zig b/anim/scenes/sort.zig
index c9b5b07..82a99e1 100644
--- a/anim/scenes/sort.zig
+++ b/anim/scenes/sort.zig
@@ -32,6 +32,7 @@ fn frame(s: *anim.Frame) void {
const ctx = canim.context(s, at, .{ .split = split });
// The lens: the array as cells, and the two indices that walk it.
const cells = canim.array(s, .{ .cursor = at, .stage = ctx.stage, .variable = "a", .indices = &.{ "i", "j" }, .focus = true });
+ ctx.map.add(s, canim.Array{ .cursor = at, .stage = ctx.map.stage, .variable = "a", .indices = &.{ "i", "j" } });
var says: canim.Narrator = .{};
// A swap, start to finish, as one step of sort(): over the call.
const swap = struct {