aboutsummaryrefslogtreecommitdiff
path: root/include/irrArray.h
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2022-07-20 22:09:07 +0200
committersfan5 <sfan5@live.de>2022-07-20 22:09:07 +0200
commit51f0acb7c1b240c67ed2d89160e0562b267a3a17 (patch)
treea9346ab48de972396541d53fbf3c9ebac89cccfe /include/irrArray.h
parent91edd214aa0e8a5e9192a2fc9188a19fc5bf135e (diff)
downloadirrlicht-51f0acb7c1b240c67ed2d89160e0562b267a3a17.tar.xz
Replace std::min in irrArray.h
should fix #122
Diffstat (limited to 'include/irrArray.h')
-rw-r--r--include/irrArray.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/irrArray.h b/include/irrArray.h
index 3b36401..f94cfb0 100644
--- a/include/irrArray.h
+++ b/include/irrArray.h
@@ -394,7 +394,7 @@ public:
{
if (index >= m_data.size() || count < 1)
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 last = std::next(first, count);
m_data.erase(first, last);