projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e57366
)
fixed case of empty scores list even after loading from server
author
Holger Schemel
<info@artsoft.org>
Mon, 21 Feb 2022 23:12:50 +0000
(
00:12
+0100)
committer
Holger Schemel
<info@artsoft.org>
Mon, 21 Feb 2022 23:12:50 +0000
(
00:12
+0100)
src/screens.c
patch
|
blob
|
history
diff --git
a/src/screens.c
b/src/screens.c
index 62eb2979cd59bbc752c5ff95d8e1e8f206ab9c63..4c361ae4d84b5550c83d82ec1124137f10f7149a 100644
(file)
--- 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)