mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-16 10:20:50 +00:00
Avoid warning on Release build in cmd::SetPalette() ctor
This commit is contained in:
parent
9c33f46859
commit
4141adcd23
@ -32,6 +32,7 @@ SetPalette::SetPalette(Sprite* sprite, frame_t frame, const Palette* newPalette)
|
||||
// Check differences between current sprite palette and the new one
|
||||
m_from = m_to = -1;
|
||||
int diffs = curPalette->countDiff(newPalette, &m_from, &m_to);
|
||||
(void)diffs;
|
||||
ASSERT(diffs > 0);
|
||||
|
||||
if (m_from >= 0 && m_to >= m_from) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user