diff options
Diffstat (limited to 'src/math/color.cc')
-rw-r--r-- | src/math/color.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/math/color.cc b/src/math/color.cc index 0cf2ea8..231ec80 100644 --- a/src/math/color.cc +++ b/src/math/color.cc @@ -58,7 +58,8 @@ void Color::assign(float red, float green, float blue, float alpha) void Color::assign(Color const & other) { - memcpy(rgba_data, other.rgba_data, sizeof(rgba_data)); + for (int i =0; i < 4; i++) + rgba_data[i] = other.rgba_data[i]; } void Color::assign(float grey, float alpha) |