fix: ResourceLoader can't cast to MajorityJudgmentPoll

The app works without the cast, anyway…
A cast would be nice, but it's not compulsory.

Release date is closing on us!
master
Dominique Merle 4 years ago
parent aeaf702d0c
commit 318a2a0934

@ -100,7 +100,8 @@ func load_ongoing_poll():
var file := File.new() var file := File.new()
if file.file_exists(ONGOING_POLL_FILEPATH): if file.file_exists(ONGOING_POLL_FILEPATH):
print("Loading ongoing poll…") 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!") print("Ongoing poll loaded!")
start_poll(_ongoing_poll) start_poll(_ongoing_poll)
else: else:

Loading…
Cancel
Save