Skip to content

Commit

Permalink
Trade settings are now correctly carried over when forming a new faction
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrettin committed May 31, 2016
1 parent 763a80e commit bd98410
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/stratagus/grand_strategy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4302,6 +4302,9 @@ void CGrandStrategyFaction::FormFaction(int civilization, int faction)

for (int i = 0; i < MaxCosts; ++i) {
GrandStrategyGame.Factions[new_civilization][new_faction]->Resources[i] = this->Resources[i];
GrandStrategyGame.Factions[new_civilization][new_faction]->Trade[i] = this->Trade[i];
this->Resources[i] = 0;
this->Trade[i] = 0;
}

GrandStrategyGame.Factions[new_civilization][new_faction]->CurrentResearch = GrandStrategyGame.Factions[old_civilization][old_faction]->CurrentResearch;
Expand Down

0 comments on commit bd98410

Please sign in to comment.