diff --git a/SDLU/structures/Color.cpp b/SDLU/structures/Color.cpp index 38758b0..0861a30 100644 --- a/SDLU/structures/Color.cpp +++ b/SDLU/structures/Color.cpp @@ -47,7 +47,7 @@ namespace sdlu return color; } - Color& Color::FromHSV(Uint16 h, Uint8 s, Uint8 v) + Color Color::FromHSV(Uint16 h, Uint8 s, Uint8 v) { // Normalize parameters // H : [0, 360) diff --git a/SDLU/structures/Color.hpp b/SDLU/structures/Color.hpp index e710d32..b1f8387 100644 --- a/SDLU/structures/Color.hpp +++ b/SDLU/structures/Color.hpp @@ -58,7 +58,7 @@ namespace sdlu * * @return An RGBA Color object generated from HSV */ - static Color& FromHSV(Uint16 h, Uint8 s, Uint8 v); + static Color FromHSV(Uint16 h, Uint8 s, Uint8 v); /////////////////// DEFAULT COLORS ///////////////////