]> git.lizzy.rs Git - irrlicht.git/commitdiff
Replace std::min in irrArray.h
authorsfan5 <sfan5@live.de>
Wed, 20 Jul 2022 20:09:07 +0000 (22:09 +0200)
committersfan5 <sfan5@live.de>
Wed, 20 Jul 2022 20:09:07 +0000 (22:09 +0200)
should fix #122

include/irrArray.h

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