diff --git a/libs/gd.hpp b/libs/gd.hpp index 3250689..776ca34 160000 --- a/libs/gd.hpp +++ b/libs/gd.hpp @@ -1 +1 @@ -Subproject commit 3250689fba113829d29b5ee9ce652a746a98aa4c +Subproject commit 776ca3447be3f3d8cef521f711c6cfb12796aa6d diff --git a/src/shared/hacks/custom-wave-trail/custom-wave-trail.cpp b/src/shared/hacks/custom-wave-trail/custom-wave-trail.cpp index bf0f23b..6a82ce0 100644 --- a/src/shared/hacks/custom-wave-trail/custom-wave-trail.cpp +++ b/src/shared/hacks/custom-wave-trail/custom-wave-trail.cpp @@ -79,11 +79,13 @@ namespace openhack::hacks { changeColor = true; } - reinterpret_cast(streak)->setColor({ - static_cast(target.r * 255), - static_cast(target.g * 255), - static_cast(target.b * 255) - }); + if (changeColor) { + reinterpret_cast(streak)->setColor({ + static_cast(target.r * 255), + static_cast(target.g * 255), + static_cast(target.b * 255) + }); + } auto scale = config::get("hack.custom_wave_trail.scale"); streak->m_pulseSize() = scale;