Skip to content

Commit

Permalink
Merge pull request #4 from deepnight/optionalPaletteFix135
Browse files Browse the repository at this point in the history
Thank you for this contribution! Merged
  • Loading branch information
miriti committed Apr 4, 2024
2 parents 27bb7c0 + 1b649c4 commit 9e15258
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ase/Ase.hx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ using Lambda;
ase.frames.push(frame);
}

final paletteChunk:PaletteChunk = cast ase.firstFrame.chunkTypes[ChunkType.PALETTE][0];
var untypedChunks = ase.frames[0].chunkTypes[ChunkType.PALETTE];
final paletteChunk:PaletteChunk = untypedChunks!=null && untypedChunks.length>0 ? (cast untypedChunks)[0] : null;

ase.palette = new Palette(paletteChunk);

Expand Down

0 comments on commit 9e15258

Please sign in to comment.