View Single Post
Fyren
FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren
Join Date: Feb 2106
Old 04-16-2021 , 00:25   Re: Exception Array index out-of-bounds
Reply With Quote #5

Quote:
Originally Posted by Vespa View Post
In any case, in short....the row n.2200 is the following:

Code:
new m_nActivePushPointIndex = Ins_ObjectiveResource_GetProp("m_nActivePushPointIndex");
Thanks for any feedback
Line 2200 is the line after what you pasted there.

PHP Code:
new m_nActivePushPointIndex Ins_ObjectiveResource_GetProp("m_nActivePushPointIndex");
Ins_ObjectiveResource_GetPropVector("m_vCPPositions",m_vCPPositions[m_nActivePushPointIndex],m_nActivePushPointIndex); 
In your original post, Exception reported: Array index out-of-bounds (index -1, limit 13) means that you gave an index of -1 and the array you indexed has 13 elements. I'd guess what's happening is that prop is -1, so you're effectively doing m_vCPPositions[-1].
Fyren is offline