From: Holger Schemel Date: Mon, 21 Feb 2022 23:12:50 +0000 (+0100) Subject: fixed case of empty scores list even after loading from server X-Git-Tag: 4.3.2.0~113 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=0e7f11a759f663c364fa0d2c42e77f7d301b25b2;p=rocksndiamonds.git fixed case of empty scores list even after loading from server --- diff --git a/src/screens.c b/src/screens.c index 62eb2979..4c361ae4 100644 --- a/src/screens.c +++ b/src/screens.c @@ -5145,10 +5145,13 @@ static void HandleChooseTree(int mx, int my, int dx, int dy, int button, DrawHallOfFame_setScoreEntries(); - ti = setHallOfFameActiveEntry(ti_ptr); + if (score_entries != NULL) + { + ti = setHallOfFameActiveEntry(ti_ptr); - if (button != MB_MENU_INITIALIZE) - drawChooseTreeScreen(ti); + if (button != MB_MENU_INITIALIZE) + drawChooseTreeScreen(ti); + } } if (score_entries == NULL)