From 1634213adfc80c18e51681541ac9df26dc371c09 Mon Sep 17 00:00:00 2001 From: "p.kosyh" Date: Sun, 31 Oct 2010 18:49:03 +0000 Subject: [PATCH] fix in graphics.c --- src/sdl-instead/graphics.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sdl-instead/graphics.c b/src/sdl-instead/graphics.c index e77072e..75d0549 100644 --- a/src/sdl-instead/graphics.c +++ b/src/sdl-instead/graphics.c @@ -2373,6 +2373,8 @@ static void word_render(struct layout *layout, struct word *word, int x, int y) fnt_t txt_layout_font(layout_t lay) { struct layout *layout = lay; + if (!lay) + return NULL; return layout->fn; }