- 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:
parent
edfc16906a
commit
eafb9da2c1
3 changed files with 7 additions and 4 deletions
|
|
@ -553,7 +553,9 @@ void FListMenuItemPatch::Drawer(bool selected)
|
|||
}
|
||||
|
||||
int FListMenuItemPatch::GetWidth()
|
||||
{
|
||||
return TexMan[mTexture]->GetScaledWidth();
|
||||
{
|
||||
return mTexture.isValid()
|
||||
? TexMan[mTexture]->GetScaledWidth()
|
||||
: 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue