View Single Post
Old 04-08-2015, 06:08 PM
passel's Avatar
passel passel is offline
Sinecure Expert

Super Moderator
* Guru *
Join Date: Jun 2003
Location: Upstate New York, usa
Posts: 8,031

Had an index error when going between some models, loading from the XML.
currentSubObjectIndex was reported as out of range, and I set it to 0, but that wasn't the problem.
It was the array currentSubObjectIndex was indexing into was old data.
Had to call initRenderScene before calling Show3DSFileinfo.
I fixed "both" issues in PD's post, although setting the currentSubObjectIndex to 0 is actually probably not necessary, as it is being used and incremented as part of the initialization so is probably set back to 0 at some other point in the process.
Setting it to 0 before it is used is a NOP in this case.
There Is An Island Of Opportunity In The Middle of Every Difficulty.
Miss That, Though, And You're Pretty Much Doomed.
Reply With Quote