funny thing in read.c
Stan Shebs
shebs@shebs.cnchost.com
Sun Dec 24 14:47:00 GMT 2000
Ari Rabkin wrote:
>
> Hi all. I was just building Xconq ver 7.4, and CodeWarrior brought to my
> attention that on line 3116 of read.c the variable m is not being
> initialized before use.
> I checked, and sure enough, it's not.
> for reference, the line is:
>
> 3116: (" default_tooling[m] = -1;")
Ooh, this is a real mistake, thanks for catching! That should be
"u" not "m". No games in the library notice right now, since they
don't use unit-defaults to set construction tooling, but the touching
of random memory is an accident waiting to happen...
Stan
More information about the Xconq7
mailing list