Code: Select all
Index: irrArray.h
===================================================================
--- irrArray.h (revision 4621)
+++ irrArray.h (working copy)
@@ -181,10 +181,12 @@
// move the rest of the array content
for (u32 i=used-1; i>index; --i)
{
- data[i] = data[i-1];
+ //data[i] = data[i-1];
+ allocator.construct(&data[i], data[i-1]);
}
// insert the new element
- data[index] = element;
+ //data[index] = element;
+ allocator.construct(&data[index], element);
}
else
{
Here is the patch request: https://sourceforge.net/p/irrlicht/patches/278/