diff --git a/src/input/Hotkeys.zig b/src/input/Hotkeys.zig index d3081b13..48107ecf 100644 --- a/src/input/Hotkeys.zig +++ b/src/input/Hotkeys.zig @@ -210,7 +210,7 @@ pub fn process(self: *Self) !void { if (hk.pressed()) { file.copy_sprite = .{ .index = file.selected_sprite_index, - .layer_id = file.selected_layer_index, + .layer_id = file.layers.items[file.selected_layer_index].id, }; } }