diff options
Diffstat (limited to 'src/level.zig')
| -rw-r--r-- | src/level.zig | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/level.zig b/src/level.zig index 610eb7b..1d61a02 100644 --- a/src/level.zig +++ b/src/level.zig @@ -62,8 +62,7 @@ pub const Map = struct { } pub fn lookup(self: Map, x: i32, y: i32) Cell { - // live dangerously, no bounds check - std.debug.assert(x >= 0 and y >= 0); // compiler hint? + // std.debug.assert(x >= 0 and y >= 0); // would this work as a compiler hint? return self.cells.items[@intCast(u32, y) * self.width + @intCast(u32, x)]; } }; |
