3ds loader fixes
-
Guest
According to irrArray.h, direct access only allows reading from the array, if i'm not mistaken..
Code: Select all
//! Direct access operator
T& operator [](u32 index)
{
_IRR_DEBUG_BREAK_IF(index>=used) // access violation
return data[index];
}
//! Direct access operator
const T& operator [](u32 index) const
{
_IRR_DEBUG_BREAK_IF(index>=used) // access violation
return data[index];
}-
Guest
When you're altering the array elements using [], by reference, does the used variable get increased, because i had to alter the code to use insert() since it was giving me an error here:
With insert, it seems to increase the used variable so that the index isn't greater or equal to it... and it doesn't give errors? 
Code: Select all
_IRR_DEBUG_BREAK_IF(index>=used) // access violation