Core/Color: Fix warning

Former-commit-id: 7c91c17d9d9c1133e206154320032d554a15c26b
This commit is contained in:
Lynix 2015-06-12 00:18:24 +02:00
parent 1e0681ef2a
commit f60f8fa6a4
1 changed files with 1 additions and 1 deletions

View File

@ -345,7 +345,7 @@ inline void NzColor::ToHSV(const NzColor& color, float* hue, float* saturation,
h = deltaB - deltaG;
else if (NzNumberEquals(g, max))
h = (1.f/3.f) + deltaR - deltaB;
else if (NzNumberEquals(b, max))
else
h = (2.f/3.f) + deltaG - deltaR;
if (h < 0.f)