Skip to content

Commit

Permalink
Remove static typing in loop (#1855)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jowan-Spooner authored Nov 1, 2023
1 parent 886ddb4 commit a40f3f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/dialogic/Modules/Text/node_type_sound.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a40f3f6

Please sign in to comment.