Bug in ogre (makes "ogre 5" difficult)

Emile LeBlanc leblanc at ucbvax.ARPA
Wed Nov 21 10:58:55 AEST 1984


    In the ogre.h file sent with "ogre" there is a definition of N_UNITS
that appears to be a little small.

Change
	#define N_UNITS 30
to
	#define N_UNITS 47
(it didn't seem worth the trouble to post this as a "diff").

    If you define too many units (especially at "orge 5" where you have
the chance to define 45 separate units) segmentation errors can occur.
I haven't looked closely at the code...but since the original define was
two greater than the number of units one could place with "ogre 3" I am
guessing that there have been a reason for this (could be that the
author thought that 30 units was enough even for the "ogre 5" case).

						Emile LeBlanc
						(ucbvax!leblanc)
						(leblanc at Berkeley)



More information about the Comp.sources.bugs mailing list