From 488af2771cf095b67ee584bc63c167d8f6adb636 Mon Sep 17 00:00:00 2001 From: Spoike Date: Sat, 20 Nov 2004 01:11:07 +0000 Subject: [PATCH] Don't crash! git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@492 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/sbar.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/engine/client/sbar.c b/engine/client/sbar.c index 7f67fcddd..0dc1670b0 100644 --- a/engine/client/sbar.c +++ b/engine/client/sbar.c @@ -1772,9 +1772,11 @@ void Sbar_DeathmatchOverlay (int start) scr_copyeverything = 1; scr_fullupdate = 0; - if (!start) { - pic = Draw_CachePic ("gfx/ranking.lmp"); - Draw_Pic ((vid.width - 320)/2 + 160-pic->width/2, 0, pic); + if (!start) + { + pic = Draw_SafeCachePic ("gfx/ranking.lmp"); + if (pic) + Draw_Pic ((vid.width - 320)/2 + 160-pic->width/2, 0, pic); } // scores