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