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

Fix crash when opening a TileSet with invalid tiles #78165

Merged
merged 1 commit into from Jun 13, 2023

Conversation

timothyqiu
Copy link
Member

Fixes #77673

get_tile_data() returns null for invalid identifiers so a check is needed. Checks has_tile() and has_alternative_tile() first so that get_tile_data() won't print errors.

@akien-mga akien-mga merged commit 5249376 into godotengine:master Jun 13, 2023
13 checks passed
@akien-mga
Copy link
Member

Thanks!

@timothyqiu timothyqiu deleted the invalid-tile branch June 13, 2023 11:55
@YuriSizov
Copy link
Contributor

Cherry-picked for 4.0.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Invalid tiles in a TileSet causes Godot to crash
4 participants