fix error that happens after the GUI is freed

This commit is contained in:
Chris Cromer 2022-07-23 13:27:21 -04:00
parent 71bf91fd2f
commit 5c4106246c
Signed by: cromer
GPG Key ID: FA91071797BEEEC2
1 changed files with 2 additions and 1 deletions

View File

@ -99,8 +99,9 @@ func _ready() -> void:
func _physics_process(_delta: float) -> void:
if monitor_enabled:
if not $MonitorGUI.visible:
if has_node("MonitorGUI") and not $MonitorGUI.visible:
$MonitorGUI.visible = true
if started and not get_tree().paused:
var frame = empty_frame.duplicate(true)
frame["coins"] = coins