- Backported GZDoom r1246:

* Fixed possible crash when texture for menu item patch cannot be loaded. (From Alexey's Mac OS X port.)
* Fixed iwadinfo.txt definitions of Hexen and Freedoom demos (also from Alexey's port.)
* Added missing LOF_NOJUMP definition.


SVN r3284 (trunk)
This commit is contained in:
Braden Obrzut 2011-08-23 02:39:20 +00:00
commit eafb9da2c1
3 changed files with 7 additions and 4 deletions

View file

@ -553,7 +553,9 @@ void FListMenuItemPatch::Drawer(bool selected)
}
int FListMenuItemPatch::GetWidth()
{
return TexMan[mTexture]->GetScaledWidth();
{
return mTexture.isValid()
? TexMan[mTexture]->GetScaledWidth()
: 0;
}