From e10b0d1b086a1824578aac0a315c684fe0c2bc81 Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas <35376950+OverloadedOrama@users.noreply.github.com> Date: Fri, 15 Nov 2024 17:59:25 +0200 Subject: [PATCH] Fix crash when opening the tile mode offsets dialog --- src/UI/Canvas/TileMode.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/UI/Canvas/TileMode.gd b/src/UI/Canvas/TileMode.gd index 641fde9b6..cca70fa61 100644 --- a/src/UI/Canvas/TileMode.gd +++ b/src/UI/Canvas/TileMode.gd @@ -3,7 +3,7 @@ extends Node2D var tiles: Tiles var draw_center := false -@onready var canvas := get_parent() as Canvas +@onready var canvas := Global.canvas func _draw() -> void: