Permalink
Browse files

fixed references in Body.prototype.sleepWithGroup

  • Loading branch information...
1 parent 363f967 commit 33b569d0513f6c524c995b947f74dbfe59f09531 @robwalch robwalch committed Jan 29, 2013
Showing with 5 additions and 5 deletions.
  1. +2 −2 cp.js
  2. +1 −1 cp.min.js
  3. +2 −2 lib/cpSpaceComponent.js
View
4 cp.js
@@ -4135,8 +4135,8 @@ Body.prototype.sleepWithGroup = function(group){
return;
}
- for(var i = 0; i < body.shapeList.length; i++){
- body.shapeList.update(this.p, this.rot);
+ for(var i = 0; i < this.shapeList.length; i++){
+ this.shapeList[i].update(this.p, this.rot);
}
space.deactivateBody(this);
Oops, something went wrong.

0 comments on commit 33b569d

Please sign in to comment.