diff --git a/crates/horizon-client/src/game.rs b/crates/horizon-client/src/game.rs index 7f5f8f62a..1d7bbbbd6 100644 --- a/crates/horizon-client/src/game.rs +++ b/crates/horizon-client/src/game.rs @@ -738,11 +738,11 @@ impl GameLevel<'_> { ); let mut container = None; for ((lo, hi), cart) in self.cart_boxes.iter().zip(self.carts) { - let cart = Aabb::new( + let bounds = Aabb::new( Vec3::new(lo[0], lo[1], lo[2]), Vec3::new(hi[0], hi[1], hi[2]), ); - if !area.intersects(cart) { + if !area.intersects(bounds) { continue; } match cart.kind {