mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 21:24:09 +00:00
Group.getAt comparison updated (fixes #578)
This commit is contained in:
parent
fc5504f8d8
commit
fee4d36b91
2 changed files with 2 additions and 2 deletions
|
@ -59,7 +59,7 @@ Bug Fixes
|
|||
|
||||
* The Static, Kinematic and Dynamic consts that P2.Body uses were incorrect (fixes #563)
|
||||
* Sprite.destroy would fail if it had an Arcade Physics body, now added.
|
||||
|
||||
* Group.getAt comparison updated (fixes #578)
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -258,7 +258,7 @@ Phaser.Group.prototype.addAt = function (child, index) {
|
|||
*/
|
||||
Phaser.Group.prototype.getAt = function (index) {
|
||||
|
||||
if (index < 0 || index > this.children.length)
|
||||
if (index < 0 || index >= this.children.length)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue