Dear Friends At Epic,
I am not calling this a bug so much as I am requesting undestanding.
I want to pass in two pointers, only 1 of which will get an actual value, so that’s why I am using them in out parameter fashion.
Neither of them ever get filled, it is only when I return the pointer value that it gets passed back to the calling context.
//returns a Evolver or an Ineff, only 1 will be valid
AActor* AVictoryGRI::GetCreatureWithVibe(int32 TheVibe, AEvolver* TheEvolver, AIneff* TheIneff)
{
//Reset
TheEvolver = NULL;
TheIneff = NULL;
//~~~~~~~~~~~~
//search Evolvers
for ( TObjectIterator It; It; ++It )
{
if(It->Vibe == TheVibe)
{
TheEvolver = *It; //found!
VictoryPC->OptInt("VGRI FOUND THE VIBE Searched For", TheVibe);
VictoryPC->Optimize(TheEvolver->GetName());
return *It;
//~~~~~~~~
}
}
//Search Ineffs
for ( TObjectIterator It; It; ++It )
{
if(It->Vibe == TheVibe)
{
TheIneff = *It; //found!
return *It;
//~~~~~~~~
}
}
return NULL;
}
#My Assumption
I am assuming then that I cannot pass in pointers as out parameters to be given values?
Rama