summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2005-01-10 19:14:05 +0000
committertruelight <truelight@openttd.org>2005-01-10 19:14:05 +0000
commit2c6e2a68b78bfe5195c3996e00136fbdafe4d4dd (patch)
tree95e3a3abc9d137bb0e57a4478520bed3bffced1b
parent52de6766c7672a4040989dc33e191c147044df03 (diff)
downloadopenttd-2c6e2a68b78bfe5195c3996e00136fbdafe4d4dd.tar.xz
(svn r1469) -Fix: missed one in last commit
-rw-r--r--oldloader.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/oldloader.c b/oldloader.c
index 51320a6ad..459fc8ee9 100644
--- a/oldloader.c
+++ b/oldloader.c
@@ -743,6 +743,9 @@ static void FixStation(OldStation *o, int num)
static void FixDepot(Depot *n, OldDepot *o, int num)
{
do {
+ if (o->xy == 0)
+ continue;
+
n->town_index = REMAP_TOWN_IDX(o->town);
n->xy = o->xy;
} while (n++,o++,--num);