Fix entrypoint crashes

This commit is contained in:
JeremyStar™ 2024-05-17 02:09:29 +02:00
parent 65a7f5ca8e
commit e104adfc0f
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D
2 changed files with 2 additions and 2 deletions

View file

@ -12,7 +12,7 @@
"contributors": [ "Contributors" ],
"license": "AGPL-3.0-or-later",
"entrypoint": "entrypoint.gd",
"slides": 5,
"slides": 1,
"animations": false,
"display_end_text_after_last_slide": true
}

View file

@ -19,4 +19,4 @@ func switch_to_slide(new_slide: int) -> void:
api.remove_all_slides()
# Add new slide
sms.add_scene("slide", resources["slide_" + str(new_slide)], CoreTypes.SceneType.MAIN)
sms.add_scene("slide", resources["slide_" + str(new_slide)].duplicate(), CoreTypes.SceneType.MAIN)