diff options
Diffstat (limited to 'src/town_gui.cpp')
-rw-r--r-- | src/town_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/town_gui.cpp b/src/town_gui.cpp index 4cbc209c4..f2e5bebfb 100644 --- a/src/town_gui.cpp +++ b/src/town_gui.cpp @@ -489,7 +489,7 @@ public: /* Depots refer to towns. */ const Depot *d; FOR_ALL_DEPOTS(d) { - if (d->town_index == this->town->index) return false; + if (d->town == this->town) return false; } /* Check all tiles for town ownership. */ |