In-Game: [YYC] Null-coalescing operator on a struct variable that does not exist causes a crash in 2024.11 runtimes #9126
Labels
project
This issue has a sample project attached
runner-bug
In-game bugs with the "GameMaker Studio 2" runtimes
Milestone
Description
In the create event of an object, I can do this to safely set a default value for a variable I expect to be set by instance_create_whatever's last argument struct.
test = self[$ "test"] ?? 5;
When running in VM on Windows it works, but in YYC this will crash.
Steps To Reproduce
Run the attached project using VM and YYC. Observe that one works and the other crashes.
Which version of GameMaker are you reporting this issue for?
IDE v2024.11.0.179 Runtime v2024.11.0.227
Which operating system(s) are you seeing the problem on?
Windows 10.0.22621.0
Which platform(s) are you seeing the problem on?
Windows
ee23b05c-b62e-496f-adca-c44462e721d4
The text was updated successfully, but these errors were encountered: