From e2077a0d93be8b2dd48f1ee680809420f1f690d7 Mon Sep 17 00:00:00 2001 From: hop311 Date: Sun, 3 Mar 2024 16:39:08 +0000 Subject: Add types to GDScript for-loop variables --- game/src/Game/MusicConductor/MusicPlayer.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'game/src/Game/MusicConductor/MusicPlayer.gd') diff --git a/game/src/Game/MusicConductor/MusicPlayer.gd b/game/src/Game/MusicConductor/MusicPlayer.gd index 949f423..17285dc 100644 --- a/game/src/Game/MusicConductor/MusicPlayer.gd +++ b/game/src/Game/MusicConductor/MusicPlayer.gd @@ -10,7 +10,7 @@ extends Control var _is_user_dragging_progress_slider : bool = false func _ready() -> void: - for songName in MusicConductor.get_all_song_names(): + for songName : String in MusicConductor.get_all_song_names(): _song_selector_button.add_item(songName, _song_selector_button.item_count) _on_song_set(MusicConductor.get_current_song_index()) MusicConductor.song_started.connect(_on_song_set) -- cgit v1.2.3-56-ga3b1