mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 05:51:20 +00:00
- Added a NULL screen check when detaching HUD messages.
SVN r1722 (trunk)
This commit is contained in:
parent
9a16e4b6ea
commit
aaf19b9127
2 changed files with 9 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue