From 0da9bd319325914e94f03e24a04a40fcf5303a7e Mon Sep 17 00:00:00 2001 From: Sebastian Morr Date: Tue, 13 Oct 2020 13:06:22 +0200 Subject: [PATCH] In the Arrow scene, check whether source exists before using it --- arrow.gd | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arrow.gd b/arrow.gd index 457e262..5ea9353 100644 --- a/arrow.gd +++ b/arrow.gd @@ -14,6 +14,9 @@ func _process(_delta): #position = -repository.objects[source].position position = Vector2(0,0) + if not (repository and repository.objects.has(source)): + return + var start = repository.objects[source].position var end = start + Vector2(0, 60)