delorie.com/archives/browse.cgi | search |
Message-ID: | <34CBF06C.556A6BE1@geocities.com> |
From: | Keith Bonawitz <aule AT geocities DOT com> |
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> |
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 |
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.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |