diff --git a/src/gui/windows/tile_info.rs b/src/gui/windows/tile_info.rs index 221a823..c159ea6 100644 --- a/src/gui/windows/tile_info.rs +++ b/src/gui/windows/tile_info.rs @@ -30,7 +30,7 @@ impl WindowSystem for TileInfo<'_, '_> { let world_manager = world.resource::(); if cursor_x >= 0 - && cursor_x <= world_manager.world().width.try_into().unwrap() + && cursor_x < world_manager.world().width.try_into().unwrap() && cursor_y >= 0 && cursor_y < world_manager.world().height.try_into().unwrap() {