diff --git a/amt/pixel.hpp b/amt/pixel.hpp index 3bbefa8..6a96e71 100644 --- a/amt/pixel.hpp +++ b/amt/pixel.hpp @@ -62,8 +62,15 @@ namespace amt { constexpr RGBA() noexcept = default; constexpr RGBA(RGBA const&) noexcept = default; constexpr RGBA(RGBA &&) noexcept = default; - constexpr RGBA& operator=(RGBA const& other) noexcept = default; - constexpr RGBA& operator=(RGBA && other) noexcept = default; + constexpr RGBA& operator=(RGBA const& other) noexcept { + this->m_data.color = other.m_data.color; + return *this; + } + constexpr RGBA& operator=(RGBA && other) noexcept { + this->m_data.color = other.m_data.color; + return *this; + } + constexpr ~RGBA() noexcept = default; diff --git a/amt/raycaster.cpp b/amt/raycaster.cpp index 852a4e4..254e975 100644 --- a/amt/raycaster.cpp +++ b/amt/raycaster.cpp @@ -3,6 +3,7 @@ #include "amt/pixel.hpp" #include "constants.hpp" +#define AMT_LIGHT using namespace fmt;