Message-ID: <34CBF06C.556A6BE1@geocities.com> From: Keith Bonawitz MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: Programming Problems References: <199801240702 DOT UAA24480 AT cirrostratus DOT netaccess DOT co DOT nz> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 11 Date: Mon, 26 Jan 1998 02:06:53 GMT NNTP-Posting-Host: cs1-10.lan.ptd.net NNTP-Posting-Date: Sun, 25 Jan 1998 21:06:53 EST To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Richard Chappell wrote: [a bunch of stuff was snipped...] > > *ptrPLAYER=Player1; > But the problem is... whenever I run the game, it stuffs up! > You need to replace lines like the ones above with ones of this form: ptrPLAYER=&Player1; The problem is ptrPLAYER points to nowhere, so bad stuff happens when you try to dereference that pointer using *ptrPLAYER, especially because you then try to write data there.