diff options
Diffstat (limited to 'anim/src/objects.zig')
| -rw-r--r-- | anim/src/objects.zig | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/anim/src/objects.zig b/anim/src/objects.zig index 6ee2b4c..dd9ea85 100644 --- a/anim/src/objects.zig +++ b/anim/src/objects.zig @@ -38,8 +38,7 @@ pub const Link = struct { from: u64, to: ?u64 }; /// shortcut: 64 objects at most; a bigger structure wants a view of part of it. pub fn reach(scratch: std.mem.Allocator, rec: *const Recording, m: Recording.Moment, root: ?[]const u8) []Object { var found: std.ArrayList(Object) = .empty; - const variables = m.variables(scratch) catch return &.{}; - for (variables) |v| { + for (rec.variables(scratch, m)) |v| { if (root) |name| if (!std.mem.eql(u8, rec.name(v.name), name)) continue; // A local its call has yet to assign points wherever that stretch of stack did before. if (!rec.assigned(v, m.index)) continue; |
