From: Holger Schemel Date: Mon, 18 Nov 2024 19:49:03 +0000 (+0100) Subject: fixed crash bug X-Git-Tag: 4.4.0.0-test-4~42 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=fa4ff9651e68582404dae6b3b299232c4585321f;p=rocksndiamonds.git fixed crash bug --- diff --git a/src/files.c b/src/files.c index 3475aee0..6ec7f0b8 100644 --- a/src/files.c +++ b/src/files.c @@ -2101,7 +2101,7 @@ filetype_id_list[] = static boolean check_special_flags(char *flag) { if (strEqual(options.special_flags, flag) || - strEqual(leveldir_current->special_flags, flag)) + (leveldir_current != NULL && strEqual(leveldir_current->special_flags, flag))) return TRUE; return FALSE;