|
|
|
@ -247,20 +247,15 @@ public final function ArrayList RemoveIndex(int index)
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Validates item at `index`: in case it was erroneously deallocated while |
|
|
|
|
* being stored in caller `ArrayList` - forgets stored `AcediaObject` |
|
|
|
|
* reference. |
|
|
|
|
* Validates item at `index`: whether it fits in current array bounds. |
|
|
|
|
* |
|
|
|
|
* @param index Index of an item to validate/ |
|
|
|
|
* @param index Index of an item to validate. |
|
|
|
|
* @return `true` if `index` is valid for `storedObjects` array. |
|
|
|
|
*/ |
|
|
|
|
private final function bool ValidateIndex(int index) |
|
|
|
|
{ |
|
|
|
|
local AcediaObject item; |
|
|
|
|
|
|
|
|
|
if (index < 0) return false; |
|
|
|
|
if (index >= storedObjects.length) return false; |
|
|
|
|
item = storedObjects[index]; |
|
|
|
|
|
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|