Pixel-Composer/scripts/array_functions/array_functions.gml
2022-01-13 11:24:03 +07:00

4 lines
101 B
Plaintext

function array_safe_get(arr, index) {
if(index >= array_length(arr)) return 0;
return arr[index];
}