Fixed crash when menu item uses non-existent texture

See http://forum.zdoom.org/viewtopic.php?t=49696
This commit is contained in:
alexey.lysiuk 2015-10-07 12:11:27 +03:00
parent df9053ea99
commit 005e468fa9
1 changed files with 5 additions and 0 deletions

View File

@ -385,6 +385,11 @@ FListMenuItemStaticPatch::FListMenuItemStaticPatch(int x, int y, FTextureID patc
void FListMenuItemStaticPatch::Drawer(bool selected) void FListMenuItemStaticPatch::Drawer(bool selected)
{ {
if (!mTexture.Exists())
{
return;
}
int x = mXpos; int x = mXpos;
FTexture *tex = TexMan(mTexture); FTexture *tex = TexMan(mTexture);
if (mYpos >= 0) if (mYpos >= 0)