Skip to content

Commit

Permalink
GetClxSpritePixelsData: Do not assume header size
Browse files Browse the repository at this point in the history
  • Loading branch information
glebm committed Oct 12, 2024
1 parent e7bb9ac commit ae39773
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/public/include/clx_decode.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ namespace dvl_gfx {

[[nodiscard]] constexpr const uint8_t *GetClxSpritePixelsData(const uint8_t *clxSprite)
{
return &clxSprite[10];
return &clxSprite[LoadLE16(&clxSprite[0])];
}

[[nodiscard]] constexpr bool IsClxOpaque(uint8_t control)
Expand Down

0 comments on commit ae39773

Please sign in to comment.