Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!unido!fauern!fauern!agmuelle From: agmuelle@medusa.informatik.uni-erlangen.de (Gil Mueller ) Newsgroups: comp.sources.games.bugs Subject: GB# Bug #2 (my count) Keywords: GB 3 Message-ID: <2956@medusa.informatik.uni-erlangen.de> Date: 5 Jul 90 08:50:56 GMT Distribution: comp Organization: CSD, University of Erlangen, W-Germany Lines: 16 I found another bug in the file autoshoot.c. It causes system crashes during update when you order to bombard a planet. The real is a division by zero in line 173 in autoshoot.c. This happens when you bombard a planet without defending ships and destructs so that numretal = 0. A fix may be to replace line 173 in autshoot.c: numdest2 = shoot(1, to, &from, i, planet, (planettype *)NULL,x,y,stren, &dist, tech/numretal, telegram_buf, 0); /* (0=dont get smap) */ by: if (numretal) { numdest2 = shoot(1, to, &from, i, planet, (planettype *)NULL,x,y,stren, &dist, tech/numretal, telegram_buf, 0); /* (0=dont get smap) */ }