-
-
Notifications
You must be signed in to change notification settings - Fork 22k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trying to access an out of bound index of an array using the get method, crashes the game #103328
Comments
Looks like the Array:
PackedFloat32Array:
|
These functions have newly been bound for 4.4 (#95930, cc @aaronfranke). I've only just realized they haven't been around longer.
|
Tested versions
System information
Godot v4.4.rc1 - Windows 11 (build 26100) - Single-window, 1 monitor - OpenGL 3 (Compatibility) - NVIDIA GeForce RTX 4060 Laptop GPU (NVIDIA; 32.0.15.6094) - 13th Gen Intel(R) Core(TM) i7-13700H (20 threads)
Issue description
The documentations says that get
However, if I use [] with an array and access an out of bounds position, I get a debugger error. If I do it with get, the game crashes:
I'd expect get to work exactly as [] in that case.
Steps to reproduce
This code reproduces the error:
I also tested with an array that wasn't a literal and the same thing happened:
Minimal reproduction project (MRP)
godot-crash-get-main.zip
The text was updated successfully, but these errors were encountered: