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

4 lines
No EOL
101 B
Text

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