Fix shop crash

This commit is contained in:
Ategon 2024-10-07 19:26:50 -04:00
parent 02edb73602
commit 8d13b0deac

View file

@ -20,6 +20,7 @@ func _ready() -> void:
func _on_window_close_icon(_data): func _on_window_close_icon(_data):
if key == "upgrade_menu": if key == "upgrade_menu":
sprite_2d.texture = image sprite_2d.texture = image
Persister.persist_data(key, false)
func _on_mouse_handler_clicked() -> void: func _on_mouse_handler_clicked() -> void:
if value == "toggle": if value == "toggle":