|
First you declare startPtr as "struct playerRec startPtr;" (i.e, a non-pointer), then you try to use it as a pointer with "startPtr->historyPtr = tmpPtr".
The declaration should either be "struct playerRec * startPtr" (and then of course then you need to fill that pointer with the appropriate struct), or the assignments to startPtr should be in the form "startPtr.historyPtr = tmpPtr". That is, with "." and not "->".
Or at least that's what I think after a fairly quick look.
Last edited by Xyhm; Apr 5th, 2006 at 10:16 AM.
|