engine: imagelib: img_quant: fix a bug in quantizer (thanks, @SNMetamorph for fix)
This commit is contained in:
parent
c6bfc82019
commit
49a65edfc3
1 changed files with 1 additions and 1 deletions
|
@ -408,7 +408,7 @@ void learn( void )
|
||||||
if( rad ) alterneigh( rad, j, r, g, b ); // alter neighbours
|
if( rad ) alterneigh( rad, j, r, g, b ); // alter neighbours
|
||||||
|
|
||||||
p += step;
|
p += step;
|
||||||
if( p >= lim ) p -= lengthcount;
|
while( p >= lim ) p -= lengthcount;
|
||||||
|
|
||||||
i++;
|
i++;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue