diff --git a/server/TracySortedVector.hpp b/server/TracySortedVector.hpp index 8ed3b8a8..570ebf41 100644 --- a/server/TracySortedVector.hpp +++ b/server/TracySortedVector.hpp @@ -72,15 +72,11 @@ public: template tracy_force_inline void push_back( const T& val, Compare comp ) { - if( sortedEnd != 0 || v.empty() || comp( v.back(), val ) ) - { - v.push_back( val ); - } - else + if( sortedEnd == 0 && !v.empty() && !comp( v.back(), val ) ) { sortedEnd = (uint32_t)v.size(); - v.push_back( val ); } + v.push_back( val ); } tracy_force_inline void reserve( size_t cap ) { v.reserve( cap ); }