From 370199a550523e18578d0dad3b21f9e26962dc29 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Fri, 12 May 2023 19:11:03 +0300 Subject: [PATCH 23/23] Rulesave: Fix crash when handling internal actions See osdn #48036 Signed-off-by: Marko Lindqvist --- tools/ruleutil/rulesave.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/ruleutil/rulesave.c b/tools/ruleutil/rulesave.c index 342beb8863..16b65c1cc2 100644 --- a/tools/ruleutil/rulesave.c +++ b/tools/ruleutil/rulesave.c @@ -1188,8 +1188,10 @@ static bool save_actions_ruleset(const char *filename, const char *name) action_iterate(act_id) { struct action *act = action_by_number(act_id); - save_action_ui_name(sfile, - act_id, action_ui_name_ruleset_var_name(act_id)); + if (!action_id_is_internal(act_id)) { + save_action_ui_name(sfile, + act_id, action_ui_name_ruleset_var_name(act_id)); + } save_action_kind(sfile, act_id); save_action_range(sfile, act_id); save_action_actor_consuming_always(sfile, act_id); -- 2.39.2