diff options
author | rubidium <rubidium@openttd.org> | 2010-05-12 19:21:00 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-05-12 19:21:00 +0000 |
commit | 93ff7d78e17ca68684065924942e40a355b58670 (patch) | |
tree | 2b363403e4e6b54d778ab55d78c2f15c27df8141 /src/saveload/oldloader_sl.cpp | |
parent | 863ff6522b671ce69a1265fe246149b25e83a847 (diff) | |
download | openttd-93ff7d78e17ca68684065924942e40a355b58670.tar.xz |
(svn r19799) -Change: give depots an unique name in the same manner buoys and waypoints are named
Diffstat (limited to 'src/saveload/oldloader_sl.cpp')
-rw-r--r-- | src/saveload/oldloader_sl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saveload/oldloader_sl.cpp b/src/saveload/oldloader_sl.cpp index 68c3daf7a..cc49d10b8 100644 --- a/src/saveload/oldloader_sl.cpp +++ b/src/saveload/oldloader_sl.cpp @@ -662,7 +662,7 @@ static bool LoadOldDepot(LoadgameState *ls, int num) if (!LoadChunk(ls, d, depot_chunk)) return false; if (d->xy != 0) { - d->town_index = RemapTownIndex(_old_town_index); + d->town = Town::Get(RemapTownIndex(_old_town_index)); } else { delete d; } |