summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi92@disroot.org>2026-11-18 02:13:51 +0100
committerXavier Del Campo Romero <xavi92@disroot.org>2026-11-18 02:13:51 +0100
commit67bb665a0f3fb71eada0924090b3aa606175299d (patch)
treeae51a6806c2bef1c6d21f93fbc558133ba40a588
parent14e13d031a4fe4af2463ee33fe06be897417a310 (diff)
downloadnj26-67bb665a0f3fb71eada0924090b3aa606175299d.tar.gz
credits.gd: Call set_music_pos after adding the scene
-rw-r--r--credits.gd2
1 files changed, 1 insertions, 1 deletions
diff --git a/credits.gd b/credits.gd
index 69d08c3..a4e10df 100644
--- a/credits.gd
+++ b/credits.gd
@@ -3,8 +3,8 @@ extends Node2D
func back():
var mainmenu = load("res://mainmenu.tscn").instance()
- mainmenu.set_music_pos($music.get_playback_position())
get_tree().root.add_child(mainmenu)
+ mainmenu.set_music_pos($music.get_playback_position())
get_tree().root.remove_child(self)
func set_music_pos(pos):