Skip to content

Commit f57d3c1

Browse files
committed
P2.Body.createGroupCallback incorrectly referenced the _groupCallbackContext when deleting it (thanks @Langerz82 phaserjs#1886)
1 parent 9886232 commit f57d3c1

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,7 @@ Version 2.4 - "Katar" - in dev
366366
* Sprite vs. Tilemap collision can now check if the sprite overlaps the tilemap without trying to separate it (thanks @Preece #1810)
367367
* The Asset Pack JSON Format example has been updated to include new and missing file formats (thanks @rblopes #1808)
368368
* RenderTexture now takes the display objects alpha into consideration when rendering it, before it would always reset worldAlpha to 1 before rendering, thus ignoring any alpha that may be set.
369+
* P2.enableBody now checks if an anchor exists on target object before attempting to set its value (thanks @standardgaussian #1885)
369370

370371
### Bug Fixes
371372

@@ -409,6 +410,7 @@ Version 2.4 - "Katar" - in dev
409410
* Due to a Pixi 2 issue TileSprite when running under WebGL didn't respect the world alpha setting and would only work with its own alpha (thanks @hanenbro #1774)
410411
* TileSprite now fully supports animation again, having been broken for several versions due to a Pixi upgrade. We've updated the way TileSprites generate their textures internally considerably and animation support is back across both Canvas and WebGL as a result (#1653)
411412
* Setting mute to false on Sound that was never muted caused its volume to be set to zero (thanks @brianbunch #1870)
413+
* P2.Body.createGroupCallback incorrectly referenced the `_groupCallbackContext` when deleting it (thanks @Langerz82 #1886)
412414

413415
### Deprecated
414416

src/physics/p2/Body.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ Phaser.Physics.P2.Body.prototype = {
217217
if (callback === null)
218218
{
219219
delete (this._groupCallbacks[group.mask]);
220-
delete (this._groupCallbacksContext[group.mask]);
220+
delete (this._groupCallbackContext[group.mask]);
221221
}
222222
else
223223
{

0 commit comments

Comments
 (0)