From 3b000f90bfb0762df23f78a8a9b9a9cf5ad6c08a Mon Sep 17 00:00:00 2001 From: Sébastien Crozet Date: Thu, 27 Aug 2020 09:01:32 +0200 Subject: Fix BroadPhase proxy handle recycling causing a crash. --- examples2d/kinematic2.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples2d/kinematic2.rs') diff --git a/examples2d/kinematic2.rs b/examples2d/kinematic2.rs index d979cd0..c40134b 100644 --- a/examples2d/kinematic2.rs +++ b/examples2d/kinematic2.rs @@ -62,8 +62,8 @@ pub fn init_world(testbed: &mut Testbed) { /* * Setup a callback to control the platform. */ - testbed.add_callback(move |bodies, _, _, _, time| { - let mut platform = bodies.get_mut(platform_handle).unwrap(); + testbed.add_callback(move |_, physics, _, _, time| { + let mut platform = physics.bodies.get_mut(platform_handle).unwrap(); let mut next_pos = platform.position; let dt = 0.016; -- cgit