summaryrefslogtreecommitdiff
path: root/src/cgame/cg_draw.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cgame/cg_draw.c')
-rw-r--r--src/cgame/cg_draw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cgame/cg_draw.c b/src/cgame/cg_draw.c
index cd6d7cfc..2cb4e305 100644
--- a/src/cgame/cg_draw.c
+++ b/src/cgame/cg_draw.c
@@ -36,7 +36,7 @@ static void CG_AlignText( rectDef_t *rect, const char *text, float scale,
float *x, float *y )
{
float tx, ty;
-
+
if( scale > 0.0f )
{
w = UI_Text_Width( text, scale, 0 );
@@ -1318,7 +1318,7 @@ static void CG_DrawFollow( rectDef_t *rect, float text_x, float text_y,
{
float tx, ty;
- if( cg.snap->ps.pm_flags & PMF_FOLLOW )
+ if( cg.snap && cg.snap->ps.pm_flags & PMF_FOLLOW )
{
char buffer[ MAX_STRING_CHARS ];