From 777c1f1b9fc8be5ede4e0ffea959631effb1b457 Mon Sep 17 00:00:00 2001 From: Anton Tarasenko Date: Sun, 3 Jul 2022 03:37:21 +0700 Subject: [PATCH] Fix `ArrayList.GetItem()` removing returned item --- sources/Data/Collections/ArrayList.uc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sources/Data/Collections/ArrayList.uc b/sources/Data/Collections/ArrayList.uc index 2fd58f1..b074fdf 100644 --- a/sources/Data/Collections/ArrayList.uc +++ b/sources/Data/Collections/ArrayList.uc @@ -280,10 +280,8 @@ public final function AcediaObject GetItem(int index) { local AcediaObject result; - if (ValidateIndex(index)) - { + if (ValidateIndex(index)) { result = storedObjects[index]; - storedObjects[index] = none; } if (result != none) { result.NewRef();