mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-17 18:40:02 +00:00
engine: imagelib: img_quant: fix a bug in quantizer (thanks, @SNMetamorph for fix)
This commit is contained in:
parent
c6bfc82019
commit
49a65edfc3
@ -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++;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user