Fix shop crash
This commit is contained in:
parent
02edb73602
commit
8d13b0deac
1 changed files with 1 additions and 0 deletions
|
@ -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":
|
||||||
|
|
Loading…
Reference in a new issue