From: Holger Schemel Date: Fri, 6 Dec 2024 17:01:55 +0000 (+0100) Subject: added checking for NULL pointer for drawing wrapped info text X-Git-Tag: 4.4.0.0-test-5~9 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=6ea515a00a3257d701f1dc2bc59e4e3506662ce9;p=rocksndiamonds.git added checking for NULL pointer for drawing wrapped info text --- diff --git a/src/screens.c b/src/screens.c index 651b6830..478d5738 100644 --- a/src/screens.c +++ b/src/screens.c @@ -4440,7 +4440,7 @@ static void DrawInfoScreen_GenericScreen(int screen_nr, int num_screens, int use SetWrappedText_GenericScreen(tmi, screen_nr, use_global_screens); - if (wrapped_text->total_height > wrapped_text->max_height) + if (wrapped_text != NULL && wrapped_text->total_height > wrapped_text->max_height) { // re-wrap text with text width reduced by scroll bar width tmi->width -= SC_SCROLL_VERTICAL_XSIZE;