- Fixed: The SBARINFO parser compared an FString in the GAMEINFO with a NULL

pointer and tried to load a lump with an empty name as statusbar script
  for non-Doom games.


SVN r1596 (trunk)
This commit is contained in:
Christoph Oelckers 2009-05-20 09:06:49 +00:00
parent 749de6c156
commit 7e69852da9
2 changed files with 7 additions and 2 deletions

View file

@ -1,4 +1,9 @@
May 19, 2009 May 20, 2009 (Changes by Graf Zahl)
- Fixed: The SBARINFO parser compared an FString in the GAMEINFO with a NULL
pointer and tried to load a lump with an empty name as statusbar script
for non-Doom games.
May 19, 2009
- Fixed: SetSoundPaused() still needs to call S_PauseSound() to pause music - Fixed: SetSoundPaused() still needs to call S_PauseSound() to pause music
that isn't piped through the digital sound system. (Was removed in r1004.) that isn't piped through the digital sound system. (Was removed in r1004.)

View file

@ -119,7 +119,7 @@ static void FreeSBarInfoScript()
void SBarInfo::Load() void SBarInfo::Load()
{ {
if(gameinfo.statusbar != NULL) if(gameinfo.statusbar.IsNotEmpty())
{ {
int lump = Wads.CheckNumForFullName(gameinfo.statusbar, true); int lump = Wads.CheckNumForFullName(gameinfo.statusbar, true);
if(lump != -1) if(lump != -1)