Replace std::min in irrArray.h

should fix #122
This commit is contained in:
sfan5 2022-07-20 22:09:07 +02:00
parent 91edd214aa
commit 51f0acb7c1

@ -394,7 +394,7 @@ public:
{ {
if (index >= m_data.size() || count < 1) if (index >= m_data.size() || count < 1)
return; return;
count = std::min(count, (s32)m_data.size() - (s32)index); count = core::min_(count, (s32)m_data.size() - (s32)index);
auto first = std::next(m_data.begin(), index); auto first = std::next(m_data.begin(), index);
auto last = std::next(first, count); auto last = std::next(first, count);
m_data.erase(first, last); m_data.erase(first, last);