danielkrupinski / GOESP

Cross-platform streamproof ESP hack for Counter-Strike: Global Offensive, written in modern C++. Rendering and GUI powered by Dear ImGui + FreeType.
MIT License
434 stars 74 forks source link

calculate color alpha out of bounds #96

Open rollraw opened 3 years ago

rollraw commented 3 years ago

https://github.com/danielkrupinski/GOESP/blob/a0e6f6f9cb3e180e59404d726f49e55131aa2ca4/GOESP/Helpers.cpp#L38 in case you decrease for more than 1 - alpha should be clamped with std::max(a, 0)