Okay, so the declaration is:
bool GetObjectsInSight(int objIdx, int &objectType, float &direction, float &distance);
Now, How do I actually get values from this? int *ObjectType i would get but &?
When I say:
GetObjectsInSight (Curitem, &(Objects[Curitem]->type), ....
It gives me an error I have never come across before:
error C2664: ''GetObjectsInSight'' : cannot convert parameter 2 from ''int *'' to ''int &''
A reference that is not to ''const'' cannot be bound to a non-lvalue
I know It''s not an error on the interfaces part, so what am I not doing?