Mantis Bug Tracker

View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0003111GameMaker: Studio[All Projects] Variablespublic2012-05-02 13:302013-03-05 15:33
ReporterErik Leppen 
Assigned ToChris Harrison 
PriorityMediumSeverityB - MajorReproducibility100%
StatusclosedResolutionno change required 
PlatformOSOS Version
Summary0003111: No error when array index out of bounds (Windows runner)
DescriptionIf a[5] is defined, and I try to read a[6], I get no error, it simply reads as zero.
Additional InformationFor some reason the game crashes when I want to close it with Escape. Maybe this has something to do with it.
GM Version
Attached Files? file icon Test33_arrays.gmz [^] (168,867 bytes) 2012-05-02 13:30

- Relationships

-  Notes
(0001615)
Chris Harrison (developer)
2012-05-03 14:08

It's because it's not actually out of bounds, it's just not been initialised and thus you get a default value of 0 returned. It's a slight change of approach from GM8.1.


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker