From 4038bb31bcf3e8e4b154802f684f84c42e076da7 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Tue, 26 Sep 2023 11:56:45 +0300 Subject: [PATCH 40/40] List "About Current Musicset" correctly in help browser See osdn #48730 Signed-off-by: Marko Lindqvist --- client/helpdata.c | 7 ++++--- data/helpdata.txt | 3 +++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/client/helpdata.c b/client/helpdata.c index 2078bca62f..0e9988575a 100644 --- a/client/helpdata.c +++ b/client/helpdata.c @@ -70,7 +70,7 @@ static const char * const help_type_names[] = { "(Any)", "(Text)", "Units", "Improvements", "Wonders", "Techs", "Terrain", "Extras", "Goods", "Specialists", "Governments", - "Ruleset", "Tileset", "Nations", "Multipliers", NULL + "Ruleset", "Tileset", "Musicset", "Nations", "Multipliers", NULL }; #define SPECLIST_TAG help @@ -640,6 +640,7 @@ static struct help_item *new_help_item(int type) pitem->topic = NULL; pitem->text = NULL; pitem->type = type; + return pitem; } @@ -1183,7 +1184,7 @@ void boot_help_texts(void) /**************************************************************************** The following few functions are essentially wrappers for the - help_nodes help_list. This allows us to avoid exporting the + help_nodes help_list. This allows us to avoid exporting the help_list, and instead only access it through a controlled interface. ****************************************************************************/ @@ -1285,7 +1286,7 @@ void help_iter_start(void) /************************************************************************//** Returns next help item; after help_iter_start(), this is - the first item. At end, returns NULL. + the first item. At end, returns NULL. ****************************************************************************/ const struct help_item *help_iter_next(void) { diff --git a/data/helpdata.txt b/data/helpdata.txt index a6e9d359e8..dc037965c1 100644 --- a/data/helpdata.txt +++ b/data/helpdata.txt @@ -1583,6 +1583,9 @@ generate = "Ruleset" [help_gen_tileset] generate = "Tileset" +[help_gen_musicset] +generate = "Musicset" + [help_nations] name = _("About Nations") text = _("\ -- 2.40.1