Browse Source

Fix `ArrayList.GetItem()` removing returned item

pull/8/head
Anton Tarasenko 2 years ago
parent
commit
777c1f1b9f
  1. 4
      sources/Data/Collections/ArrayList.uc

4
sources/Data/Collections/ArrayList.uc

@ -280,10 +280,8 @@ public final function AcediaObject GetItem(int index)
{ {
local AcediaObject result; local AcediaObject result;
if (ValidateIndex(index)) if (ValidateIndex(index)) {
{
result = storedObjects[index]; result = storedObjects[index];
storedObjects[index] = none;
} }
if (result != none) { if (result != none) {
result.NewRef(); result.NewRef();

Loading…
Cancel
Save