From: Holger Schemel Date: Thu, 25 Feb 2021 11:43:49 +0000 (+0100) Subject: added safety check (should never happen style) X-Git-Tag: 4.2.3.1~6 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=3665f23e5708db69ec26ff908b99926afc87b2ce;p=rocksndiamonds.git added safety check (should never happen style) --- diff --git a/src/libgame/setup.c b/src/libgame/setup.c index d88af07c..d867ebba 100644 --- a/src/libgame/setup.c +++ b/src/libgame/setup.c @@ -4553,6 +4553,8 @@ void UpdateLastPlayedLevels_TreeInfo(void) { LevelDirTree *node_last = getTreeInfoFromIdentifier(leveldir_first, last_level_series[i]); + if (node_last == NULL) + continue; *node_new = getTreeInfoCopy(node_last); // copy complete node