1
0
Fork 0

Fix what looks like it could potentially cause a problem with accessing

previously free'd memory.
This commit is contained in:
curt 2001-06-30 00:27:13 +00:00
parent 3d4581dd81
commit 9fc9c8d55a
2 changed files with 4 additions and 1 deletions

View file

@ -722,6 +722,7 @@ void fgCockpitUpdate( void ) {
// If these is anything to draw it will.
fgUpdateHUD();
}
#define DISPLAY_COUNTER
#ifdef DISPLAY_COUNTER
else

View file

@ -938,8 +938,10 @@ void fgHUDalphaInit( void ) {
void fgHUDReshape(void) {
if ( HUDtext )
if ( HUDtext ) {
delete HUDtext;
HUDtext = NULL;
}
HUD_TextSize = fgGetInt("/sim/startup/xsize") / 60;
HUD_TextSize = 10;