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

View file

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