- Added a NULL screen check when detaching HUD messages.

SVN r1722 (trunk)
This commit is contained in:
Randy Heit 2009-07-16 23:07:20 +00:00
parent 9a16e4b6ea
commit aaf19b9127
2 changed files with 9 additions and 2 deletions

View file

@ -1,4 +1,5 @@
July 16, 2009
- Added a NULL screen check when detaching HUD messages.
- Added HotWax's A_SetArg.
- Gez's patch for more A_WeaponReady flags:
* WRF_NOBOB (1): Weapon won't bob

View file

@ -381,7 +381,10 @@ DHUDMessage *DBaseStatusBar::DetachMessage (DHUDMessage *msg)
*prev = probe->Next;
probe->Next = NULL;
// Redraw the status bar in case it was covered
SB_state = screen->GetPageCount ();
if (screen != NULL)
{
SB_state = screen->GetPageCount();
}
}
return probe;
}
@ -401,7 +404,10 @@ DHUDMessage *DBaseStatusBar::DetachMessage (DWORD id)
*prev = probe->Next;
probe->Next = NULL;
// Redraw the status bar in case it was covered
SB_state = screen->GetPageCount ();
if (screen != NULL)
{
SB_state = screen->GetPageCount();
}
}
return probe;
}