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

get_tree().reload_current_scene() causes at("") to crash game #209

Open
jgrenda opened this issue Feb 18, 2024 · 0 comments
Open

get_tree().reload_current_scene() causes at("") to crash game #209

jgrenda opened this issue Feb 18, 2024 · 0 comments

Comments

@jgrenda
Copy link
Collaborator

jgrenda commented Feb 18, 2024

Using get_tree().reload_current_scene() to reload the game causes at("") to no longer work and give the following error in the stack trace: "Attempt to call function 'at' in base 'previously freed' on a null instance".

Possible fix:
Include validity check when returning things from cache in U.next_store.
if key in _at_cache: return _at_cache[key] becomes
if key in _at_cache and is_instance_valid(_at_cache[key]): return _at_cache[key]

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

No branches or pull requests

1 participant