[net.games] Need help with Midway bug

davidk@dartvax.UUCP (David C. Kovar) (07/22/84)

I'm getting a segmentation fault from the following chunk of code
in midway.c . This is the section that runs through the individual
sections in a particular fleet and gives their stats. It looks fine
to me, but ... I suppose it could be something wrong with the 
declaration as well. If anyone has any ideas, I'd be more than
happy to hear them. This is right around line 414 of midway.c .

	muck = (int *) fleet[i];
	for (i=0; muck[i] != NULL; i++) {
		sp = (struct ship *) muck[i];
		printf("%d) %s %s (%d Kilotons)\n",
			i, describe[sp->type], sp->name, sp->value);
	}

-- 
David C. Kovar    
	    USNET:      {linus|decvax|cornell|astrovax}!dartvax!davidk
	    ARPA:	davidk%dartmouth@csnet-relay
	    CSNET:	davidk@dartmouth


"The difficult we did yesterday, the impossible we are doing now."