mirror of
https://github.com/edubart/otclient.git
synced 2025-10-20 06:23:26 +02:00
Merge pull request #1045 from diath/dft_cpy_mov_ctor
Add default copy constructors to Color and Position classes
This commit is contained in:
@@ -39,6 +39,8 @@ public:
|
||||
Color(float r, float g, float b, float a = 1.0f) : m_r(r), m_g(g), m_b(b), m_a(a) { }
|
||||
Color(const std::string& coltext);
|
||||
|
||||
Color(const Color &color) = default;
|
||||
|
||||
uint8 a() const { return m_a*255.0f; }
|
||||
uint8 b() const { return m_b*255.0f; }
|
||||
uint8 g() const { return m_g*255.0f; }
|
||||
|
Reference in New Issue
Block a user