(svn r26753) -Fix: desync due to not always properly restoring game state from the savegame

This commit is contained in:
rubidium
2014-08-22 17:11:59 +00:00
parent fd82ab4b60
commit d214ca2c7d
2 changed files with 4 additions and 3 deletions

View File

@@ -541,7 +541,7 @@ static void Load_STNN()
for (uint32 j = 0; j < _num_flows; ++j) {
SlObject(&flow, _flow_desc);
if (fs == NULL || prev_source != flow.source) {
fs = &(st->goods[i].flows.insert(std::make_pair(flow.source, FlowStat(flow.via, flow.share))).first->second);
fs = &(st->goods[i].flows.insert(std::make_pair(flow.source, FlowStat(flow.via, flow.share, flow.restricted))).first->second);
} else {
fs->AppendShare(flow.via, flow.share, flow.restricted);
}