mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 12:43:26 +00:00
Fixed array access
This commit is contained in:
parent
695de5fbf4
commit
1f8d0c80f9
1 changed files with 4 additions and 4 deletions
|
@ -366,18 +366,18 @@ var InputPlugin = new Class({
|
|||
this._draggable.splice(index, 1);
|
||||
}
|
||||
|
||||
index = this._drag.indexOf(gameObject);
|
||||
index = this._drag[0].indexOf(gameObject);
|
||||
|
||||
if (index > -1)
|
||||
{
|
||||
this._drag.splice(index, 1);
|
||||
this._drag[0].splice(index, 1);
|
||||
}
|
||||
|
||||
index = this._over.indexOf(gameObject);
|
||||
index = this._over[0].indexOf(gameObject);
|
||||
|
||||
if (index > -1)
|
||||
{
|
||||
this._over.splice(index, 1);
|
||||
this._over[0].splice(index, 1);
|
||||
}
|
||||
|
||||
return gameObject;
|
||||
|
|
Loading…
Reference in a new issue