Skip to content
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

Expression (a ? b : c).id work for desktop but crash on html5 plarform #2426

Closed
1 of 2 tasks
ze0nni opened this issue Dec 8, 2023 · 2 comments
Closed
1 of 2 tasks
Assignees
Labels
runner-bug In-game bugs with the "GameMaker Studio 2" runtimes
Milestone

Comments

@ze0nni
Copy link

ze0nni commented Dec 8, 2023

Description

var __items_0 = { id: 42 }
var __items_1 = { id: 9001 }
show_debug_message(((random(10) == 0 ? __items_0 : __items_1)).id);

Runtime version: v2023.11.0.157
Contact Us.zip

Expected Change

Same behavior for all platforms

Steps To Reproduce

  • Put code in room creation code
  • Run desktop
  • Get debug message
  • Run browser
  • Get error

How reliably can you recreate this issue using your steps above?

Always

Which version of GameMaker are you reporting this issue for?

Other Release (Please put the exact version number in your Description)

Which platform(s) are you seeing the problem on?

HTML5

Contact Us Package Attached?

  • I have attached my Contact Us Package

Sample Project Added?

  • I have included a small sample project
@ze0nni ze0nni added the runner-bug In-game bugs with the "GameMaker Studio 2" runtimes label Dec 8, 2023
@stuckie stuckie added this to the 2024.2 milestone Dec 11, 2023
@rwkay
Copy link

rwkay commented Dec 15, 2023

Fixed in 2024.2

@rwkay rwkay closed this as completed Dec 15, 2023
@Emc1923
Copy link

Emc1923 commented Jan 4, 2024

Verified in IDE v2024.200.0.454 Runtime v2024.200.0.466

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
runner-bug In-game bugs with the "GameMaker Studio 2" runtimes
Projects
Archived in project
Development

No branches or pull requests

4 participants