iT2D 1.4.1 - tVector back() bug
by Alistair Lowe3 · in iTorque 2D · 04/16/2011 (7:19 pm) · 1 replies
Build: All
Platform: All
Target: All
Issues: tVector's back() function returns the wrong address. It returns *end(), the location pointed to by the iterator end(), when in fact the last position in an iterator is one past the last element.
Fix: Change to return *( end() - 1 )
Platform: All
Target: All
Issues: tVector's back() function returns the wrong address. It returns *end(), the location pointed to by the iterator end(), when in fact the last position in an iterator is one past the last element.
Fix: Change to return *( end() - 1 )
Torque 3D Owner Alistair Lowe3