don't crash.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1868 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2006-01-14 23:45:49 +00:00
parent ac60336e9e
commit 5e0ecbc3d9

View file

@ -164,8 +164,9 @@ void MSetup_TransDraw (int x, int y, menucustom_t *option, menu_t *menu)
} }
} }
p = Draw_CachePic ("gfx/bigbox.lmp"); p = Draw_SafeCachePic ("gfx/bigbox.lmp");
Draw_TransPic (x-12, y-8, p); if (p)
Draw_TransPic (x-12, y-8, p);
M_BuildTranslationTable(info->topcolour*16, info->lowercolour*16); M_BuildTranslationTable(info->topcolour*16, info->lowercolour*16);
Draw_TransPicTranslate (x, y, info->tiwidth, info->tiheight, info->translationimage, translationTable); Draw_TransPicTranslate (x, y, info->tiwidth, info->tiheight, info->translationimage, translationTable);