From 318a2a093479a72b135d56ecbf52deb20489d1a6 Mon Sep 17 00:00:00 2001 From: domi41 Date: Wed, 9 Sep 2020 08:29:46 +0200 Subject: [PATCH] fix: ResourceLoader can't cast to MajorityJudgmentPoll MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The app works without the cast, anyway… A cast would be nice, but it's not compulsory. Release date is closing on us! --- core/App.gd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/App.gd b/core/App.gd index 53c3653..acdb974 100644 --- a/core/App.gd +++ b/core/App.gd @@ -100,7 +100,8 @@ func load_ongoing_poll(): var file := File.new() if file.file_exists(ONGOING_POLL_FILEPATH): print("Loading ongoing poll…") - var _ongoing_poll = ResourceLoader.load(ONGOING_POLL_FILEPATH, "MajorityJudgmentPoll") +# var _ongoing_poll = ResourceLoader.load(ONGOING_POLL_FILEPATH, "MajorityJudgmentPoll") + var _ongoing_poll = ResourceLoader.load(ONGOING_POLL_FILEPATH) print("Ongoing poll loaded!") start_poll(_ongoing_poll) else: