From 69d88d27f0b1e8184059e8a45e59e1a57b5cb98f Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sat, 24 Apr 2021 03:25:13 +0300 Subject: [PATCH 48/48] Rulesave: Fix saving of "Builder" AI trait See osdn #42066 Signed-off-by: Marko Lindqvist --- server/ruleset.c | 3 ++- tools/ruleutil/rulesave.c | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/server/ruleset.c b/server/ruleset.c index 580eaa5c9a..e4609129ce 100644 --- a/server/ruleset.c +++ b/server/ruleset.c @@ -1288,7 +1288,8 @@ static void ruleset_load_traits(struct trait_limits *out, enum trait tr; /* FIXME: Use specenum trait names without duplicating them here. - * Just needs to take care of case. */ + * Just needs to take care of case. + * This list is also duplicated in rulesave.c:save_traits() */ const char *trait_names[] = { "expansionist", "trader", diff --git a/tools/ruleutil/rulesave.c b/tools/ruleutil/rulesave.c index c7af90a2f8..d2b6c2ddda 100644 --- a/tools/ruleutil/rulesave.c +++ b/tools/ruleutil/rulesave.c @@ -1754,11 +1754,13 @@ static bool save_traits(struct trait_limits *traits, enum trait tr; /* FIXME: Use specenum trait names without duplicating them here. - * Just needs to take care of case. */ + * Just needs to take care of case. + * This list is also duplicated in ruleset.c:ruleset_load_traits() */ const char *trait_names[] = { "expansionist", "trader", "aggressive", + "builder", NULL }; -- 2.30.2