Commit eecca8a2 by schurade

[FIX]floating point exception when given 0 as part size

parent 08b8f6da
......@@ -154,6 +154,7 @@ WColor wge::createColorFromHSV( int h, float s, float v )
WColor wge::getNthHSVColor( int n, int parts )
{
parts = std::max( 1, parts );
if ( parts > 360 )
{
parts = 360;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment