From 1f8d0c80f9d5e612d5b679d34e4b082d5e62c23a Mon Sep 17 00:00:00 2001 From: Richard Davey Date: Thu, 1 Mar 2018 04:13:30 +0000 Subject: [PATCH] Fixed array access --- src/input/InputPlugin.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/input/InputPlugin.js b/src/input/InputPlugin.js index eee3ea16d..6cff34629 100644 --- a/src/input/InputPlugin.js +++ b/src/input/InputPlugin.js @@ -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;