mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-16 13:14:44 +00:00
Fix Palette:countDiff() bug when "to" must be equal to max-1.
This commit is contained in:
parent
6a216ad6a8
commit
bc753c5bc1
@ -122,7 +122,7 @@ int Palette::countDiff(const Palette* other, int* from, int* to) const
|
||||
|
||||
if (max != min) {
|
||||
diff += max - min;
|
||||
if (to) *to = max;
|
||||
if (to) *to = max-1;
|
||||
}
|
||||
|
||||
return diff;
|
||||
|
Loading…
Reference in New Issue
Block a user