Skip to content

Commit

Permalink
fix CopyPalette count being wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
LittlePlanetCD committed Mar 19, 2024
1 parent b95a333 commit b78db1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RSDKv4/Palette.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ inline uint GetPaletteEntryPacked(byte paletteIndex, byte index)
return (clr.r << 16) | (clr.g << 8) | (clr.b);
}

inline void CopyPalette(byte sourcePalette, byte srcPaletteStart, byte destinationPalette, byte destPaletteStart, ushort count)
inline void CopyPalette(byte sourcePalette, byte srcPaletteStart, byte destinationPalette, byte destPaletteStart, byte count)
{
if (sourcePalette < PALETTE_COUNT && destinationPalette < PALETTE_COUNT) {
for (int i = 0; i < count; ++i) {
Expand Down

0 comments on commit b78db1b

Please sign in to comment.