I don't know, if this should be considered as a bug, therefore I wanted to post here first, for discussion. So, when using the irrlicht array type and setting
array.set_free_when_destroyed(false)
meaning
//! Sets if the array should delete the memory it uses upon destruction.
/** \param f If true, the array frees the allocated memory in its
destructor, otherwise not. The default is true. */
and afterwards calling
array.set_pointer(p1, count)
array.set_pointer(p2, count)
The 2nd call will set the array data p2 but will also delete the p1 content.
So, when looking at the docu, this behavior is not direct illegal, as the array isn't destructed.
But in my opinion this behavior (and docu) should be extended that calls like this (set_pointer and operator= ) won't destruct the data.
I haven't thought about this to the end, but in my use case that's what I want. So what do you think?
