diff --git a/src/core/Engine.js b/src/core/Engine.js index ebc0f33..7ecc9d1 100644 --- a/src/core/Engine.js +++ b/src/core/Engine.js @@ -279,7 +279,7 @@ var Engine = {}; for (var i = 0; i < bodies.length; i++) { var body = bodies[i]; Sleeping.set(body, false); - body.id = Body.nextId(); + body.id = Common.nextId(); } } };