Skip to content

Commit

Permalink
Fixed compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrettin committed Jan 7, 2018
1 parent 20ad1df commit 1888a0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stratagus/script_player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1106,7 +1106,7 @@ static int CclDefineCivilization(lua_State *l)
}

//inherit historical upgrades from the parent civilization, if no historical data is given for that upgrade for this civilization
for (std::map<std::string, std::map<CDate, bool>>::iterator iterator = parent_civilization->HistoricalUpgrades.begin(); iterator != parent_civilization->HistoricalUpgrades.end(); ++iterator) {
for (std::map<std::string, std::map<CDate, bool>>::const_iterator iterator = parent_civilization->HistoricalUpgrades.begin(); iterator != parent_civilization->HistoricalUpgrades.end(); ++iterator) {
if (civilization->HistoricalUpgrades.find(iterator->first) == civilization->HistoricalUpgrades.end()) {
civilization->HistoricalUpgrades[iterator->first] = iterator->second;
}
Expand Down

0 comments on commit 1888a0a

Please sign in to comment.