Skip to content

Commit c38fbfe

Browse files
CreativeCodingProjectsCreativeCodingProjects
authored andcommitted
fixed crash in image_sequence_load
1 parent b785466 commit c38fbfe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/assetLoader.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export default class AssetLoader{
1616
load_image_sequence(name, file_type, sequence_length){
1717
this._total_assets_to_load += sequence_length;
1818
for(var i = 0; i < sequence_length; ++i){
19+
this._image_sequences[name] = {};
1920
this._image_sequences[name][i] = loadImage("assets/images/"+name+"/"+name+"_"+i+"."+file_type, this.asset_loaded.bind(this));
2021
}
2122
}

0 commit comments

Comments
 (0)