engine: imagelib: img_quant: fix a bug in quantizer (thanks, @SNMetamorph for fix)

This commit is contained in:
Alibek Omarov 2023-01-05 07:24:24 +03:00
parent c6bfc82019
commit 49a65edfc3
1 changed files with 1 additions and 1 deletions

View File

@ -408,7 +408,7 @@ void learn( void )
if( rad ) alterneigh( rad, j, r, g, b ); // alter neighbours
p += step;
if( p >= lim ) p -= lengthcount;
while( p >= lim ) p -= lengthcount;
i++;