Fix null error on tracking gamemode

This commit is contained in:
antimundo 2024-06-26 11:48:06 +02:00
parent 5e00704570
commit ff07f39eca
No known key found for this signature in database
GPG key ID: F83F260F8F88F0BC

View file

@ -22,4 +22,5 @@ func update_timer_ui(time_left: float) -> void:
func _on_player_shoot() -> void:
if _timer.is_stopped():
_timer.start()
$PressAny.queue_free()
if get_node_or_null("PressAny") != null:
get_node("PressAny").queue_free()