Skip to content

Commit 1f8d0c8

Browse files
committed
Fixed array access
1 parent 695de5f commit 1f8d0c8

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/input/InputPlugin.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -366,18 +366,18 @@ var InputPlugin = new Class({
366366
this._draggable.splice(index, 1);
367367
}
368368

369-
index = this._drag.indexOf(gameObject);
369+
index = this._drag[0].indexOf(gameObject);
370370

371371
if (index > -1)
372372
{
373-
this._drag.splice(index, 1);
373+
this._drag[0].splice(index, 1);
374374
}
375375

376-
index = this._over.indexOf(gameObject);
376+
index = this._over[0].indexOf(gameObject);
377377

378378
if (index > -1)
379379
{
380-
this._over.splice(index, 1);
380+
this._over[0].splice(index, 1);
381381
}
382382

383383
return gameObject;

0 commit comments

Comments
 (0)