0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2024-11-27 09:50:52 -05:00

Engine.merge now uses Common.nextId

This commit is contained in:
liabru 2014-04-30 21:55:08 +01:00
parent 84c3b79c2c
commit 7a8051b585

View file

@ -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();
}
}
};