Sorry, I think I’m getting confused with the currently-selected officer, which is -1 to begin with. Obviously we’re concerned about the companions.
The trace I have there returns 4, which clearly is the number of ships I have. So it’s being reset, right?
Code:
if(newCurNod!="")
{
SetCurrentNode(newCurNod);
}
else
{
RecalculateCargoLoad( xi_refCharacter );
RecalculateCargoLoad( refEnemyCharacter );
DeleteAttribute(xi_refCharacter,"InterfaceParam");
for(i=1;i<COMPANION_MAX;i++)
{
if(GetCompanionIndex(xi_refCharacter,i)==-1)
{
pCharacter.InterfaceParam.i1 = i;
trace("Main - i: "+i);
break;
}
}
}