Skip to content

Commit

Permalink
Fix preloading
Browse files Browse the repository at this point in the history
  • Loading branch information
1j01 committed Feb 23, 2022
1 parent 4bc4d58 commit 2c8c168
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/oh-shit-waddup.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ load_sound = memoize (path) =>
audio_buffer = await audio_ctx.decodeAudioData(array_buffer)

# preload sounds
for name, path in sound_file_paths
for name, path of sound_file_paths
if sound_variation_counts[name]
for i in [1...sound_variation_counts[name]]
load_sound(path.replace("#", i))
Expand Down

0 comments on commit 2c8c168

Please sign in to comment.