From 7ee0a717f5095a1a917cb54ce9570b528fbe43d4 Mon Sep 17 00:00:00 2001 From: Richard Davey Date: Tue, 18 Dec 2018 12:12:47 +0000 Subject: [PATCH] `Container.getFirst` was using an incorrect Array Utils function `GetFirstElement`, when it should have been using `GetFirst`. It now uses the correct function. Fix #4244 --- src/gameobjects/container/Container.js | 2 +- src/structs/List.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gameobjects/container/Container.js b/src/gameobjects/container/Container.js index 568d756ec..61396731c 100644 --- a/src/gameobjects/container/Container.js +++ b/src/gameobjects/container/Container.js @@ -610,7 +610,7 @@ var Container = new Class({ */ getFirst: function (property, value, startIndex, endIndex) { - return ArrayUtils.GetFirstElement(this.list, property, value, startIndex, endIndex); + return ArrayUtils.GetFirst(this.list, property, value, startIndex, endIndex); }, /** diff --git a/src/structs/List.js b/src/structs/List.js index 15fda9930..6bfdf3cfd 100644 --- a/src/structs/List.js +++ b/src/structs/List.js @@ -283,7 +283,7 @@ var List = new Class({ */ getFirst: function (property, value, startIndex, endIndex) { - return ArrayUtils.GetFirstElement(this.list, property, value, startIndex, endIndex); + return ArrayUtils.GetFirst(this.list, property, value, startIndex, endIndex); }, /**