X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Feditor.c;h=1b72d69b4a9514921e37e88a2f21d25e06a825ee;hb=3f878a4e9c28dbb09ab2ed13e972aa2f77ef236e;hp=d104ae422880c9a47ba2bb9c0e9da67636ddd716;hpb=b3965d5e36b4388795d646d6bca1764429defc88;p=rocksndiamonds.git diff --git a/src/editor.c b/src/editor.c index d104ae42..1b72d69b 100644 --- a/src/editor.c +++ b/src/editor.c @@ -12051,7 +12051,7 @@ void PrintEditorGadgetInfoText(struct GadgetInfo *gi) char shortcut[MAX_OUTPUT_LINESIZE + 1]; int max_infotext_len = getMaxInfoTextLength(); - if (gi == NULL || gi->info_text == NULL) + if (gi == NULL || strlen(gi->info_text) == 0) return; strncpy(infotext, gi->info_text, max_infotext_len);