View Single Post
Old Apr 5th, 2006, 10:03 AM   #2
Xyhm
Programmer
 
Xyhm's Avatar
 
Join Date: Mar 2006
Posts: 60
Rep Power: 3 Xyhm is on a distinguished road
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.
Xyhm is offline   Reply With Quote