summaryrefslogtreecommitdiff
path: root/town.h
diff options
context:
space:
mode:
Diffstat (limited to 'town.h')
-rw-r--r--town.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/town.h b/town.h
index 50a47c14b..edf6b38d0 100644
--- a/town.h
+++ b/town.h
@@ -171,7 +171,7 @@ static inline TownID GetMaxTownIndex(void)
* _really_ returns the highest index. Now it just returns
* the next safe value we are sure about everything is below.
*/
- return _total_towns - 1;
+ return GetTownPoolSize() - 1;
}
static inline uint GetNumTowns(void)