diff options
author | rubidium <rubidium@openttd.org> | 2014-08-22 17:11:59 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2014-08-22 17:11:59 +0000 |
commit | 134ad63b803ca160aa4aaf943cf28bbc58fa381b (patch) | |
tree | 24ee3101c371588330bb4fba44bb2a92766655ea /src/saveload | |
parent | e458661fb65d72766d6a7f7a3ea9e4b5bff6d4c5 (diff) | |
download | openttd-134ad63b803ca160aa4aaf943cf28bbc58fa381b.tar.xz |
(svn r26753) -Fix: desync due to not always properly restoring game state from the savegame
Diffstat (limited to 'src/saveload')
-rw-r--r-- | src/saveload/station_sl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saveload/station_sl.cpp b/src/saveload/station_sl.cpp index a6de95dd0..17fcc58bd 100644 --- a/src/saveload/station_sl.cpp +++ b/src/saveload/station_sl.cpp @@ -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); } |