From dc6aab9a2d3d3d435b5f0dc354499d49fdaba668 Mon Sep 17 00:00:00 2001 From: Relintai Date: Sat, 13 Jun 2020 15:36:21 +0200 Subject: [PATCH] Update ProfileManager call. --- game/ui/buttons/Buttons.gd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/game/ui/buttons/Buttons.gd b/game/ui/buttons/Buttons.gd index 6953681a..ca211ce3 100644 --- a/game/ui/buttons/Buttons.gd +++ b/game/ui/buttons/Buttons.gd @@ -28,7 +28,7 @@ var spell_book_button export (NodePath) var lock_button_path var lock_button -var player +var player : Entity func _ready(): lock_button = get_node(lock_button_path) @@ -47,7 +47,7 @@ func _lock_button_click(): if cls == null: return - var profile = ProfileManager.get_class_profile(cls.id) + var profile = ProfileManager.getc_player_profile().get_class_profile(cls.resource_path) profile.actionbar_locked = not profile.actionbar_locked