Browse Source

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 2 years ago
parent
commit
318a2a0934
  1. 3
      core/App.gd

3
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:

Loading…
Cancel
Save