diff --git a/addons/dialogic/Modules/Text/node_type_sound.gd b/addons/dialogic/Modules/Text/node_type_sound.gd index 685245a8c..9c055455b 100644 --- a/addons/dialogic/Modules/Text/node_type_sound.gd +++ b/addons/dialogic/Modules/Text/node_type_sound.gd @@ -111,7 +111,7 @@ static func load_sounds_from_path(path:String) -> Array[AudioStream]: if path.get_extension().to_lower() in ['mp3', 'wav', 'ogg'] and load(path) is AudioStream: return [load(path)] var _sounds :Array[AudioStream]= [] - for file:String in DialogicUtil.listdir(path, true, false, true, true): + for file in DialogicUtil.listdir(path, true, false, true, true): if !file.ends_with('.import'): continue if file.trim_suffix('.import').get_extension().to_lower() in ['mp3', 'wav', 'ogg'] and ResourceLoader.load(file.trim_suffix('.import')) is AudioStream: