Skip to content

Commit

Permalink
Send action enablers at the end of the ruleset
Browse files Browse the repository at this point in the history
Otherwise the requirements could reference unknown (not yet sent)
objects. This was seen with nation groups.

Closes #2197.
  • Loading branch information
lmoureaux committed Mar 18, 2024
1 parent 339abcd commit 1b64e08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/ruleset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8890,7 +8890,6 @@ void send_rulesets(struct conn_list *dest)
send_ruleset_trade_routes(dest);
send_ruleset_team_names(dest);
send_ruleset_actions(dest);
send_ruleset_action_enablers(dest);
send_ruleset_action_auto_performers(dest);
send_ruleset_tech_classes(dest);
send_ruleset_techs(dest);
Expand All @@ -8911,6 +8910,7 @@ void send_rulesets(struct conn_list *dest)
send_ruleset_cities(dest);
send_ruleset_multipliers(dest);
send_ruleset_musics(dest);
send_ruleset_action_enablers(dest);
send_ruleset_cache(dest);

// Indicate client that all rulesets have now been sent.
Expand Down

0 comments on commit 1b64e08

Please sign in to comment.