From 170b2c4080fc7c107c27dbd2e2e86f2e1fadaa7a Mon Sep 17 00:00:00 2001 From: Stenodyon Date: Sat, 7 Dec 2019 15:41:25 +0100 Subject: [PATCH] fixes #12 --- src/input.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/input.zig b/src/input.zig index 4e60a66..4cb130e 100644 --- a/src/input.zig +++ b/src/input.zig @@ -179,7 +179,7 @@ pub fn on_key_up(state: *State, keysym: sdl.Keysym) !void { state.copy_buffer.clear(); if ((modifiers & sdl.KMOD_LCTRL) != 0) { // CTRL + D var min = Vec2i.new(std.math.maxInt(i32), std.math.maxInt(i32)); - var max = Vec2i.new(0, 0); + var max = Vec2i.new(std.math.minInt(i32), std.math.minInt(i32)); var entity_iterator = state.selected_entities.iterator(); while (entity_iterator.next()) |entry| { min.x = std.math.min(min.x, entry.key.x);