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

GDScript classes can be replaced by anything #8791

Closed
Zylann opened this issue May 16, 2017 · 2 comments
Closed

GDScript classes can be replaced by anything #8791

Zylann opened this issue May 16, 2017 · 2 comments

Comments

@Zylann
Copy link
Contributor

Zylann commented May 16, 2017

The following code works:

	Sprite = 42
	print(Sprite)

And effectiveley replaces Sprite as if it was a normal global variable.
It looks like a bug, and a way to troll a game project really hard^^
Someone (maybe accidentally) did that in a QA thread: https://godotengine.org/qa/14991/extention-add_exception-nonexistent-function-add_exception

Might be related to #6221

@Zylann
Copy link
Contributor Author

Zylann commented Feb 16, 2018

Still happens in Godot 3.0 stable.

@vnen
Copy link
Member

vnen commented Jul 22, 2018

Solved by #19264.

@vnen vnen closed this as completed Jul 22, 2018
@vnen vnen added this to the 3.1 milestone Jul 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants