mirror of
https://github.com/minetest/irrlicht.git
synced 2024-11-18 05:33:52 +01: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);
|
||||||
|
Loading…
Reference in New Issue
Block a user