summaryrefslogtreecommitdiff
path: root/oldloader.c
diff options
context:
space:
mode:
Diffstat (limited to 'oldloader.c')
-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);