Hi,
Sorry for asking what may sound like stupid questions, but I am yet again stuck with bl**dy pointers...
I have a TObjectList with a load of TCreatures in it.
I have a pointer type to a creature which works fine:-
type PCreature = ^TCreature;
I have a PCreature variable that I want to use to control my 'player' creature.
eg. Player: PCreature;
What I need to do is get the pointer to the actual TCreature in the List:-
Something like:-
Player := @lstCreatures.Items[iX];
But it says 'variable required'. What am I doing wrong here? Can I not get a pointer to it this way?
Thanks for your patience =D
Bookmarks