diff options
Diffstat (limited to 'src/town.h')
-rw-r--r-- | src/town.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/town.h b/src/town.h index 3ad04d22e..059040f2f 100644 --- a/src/town.h +++ b/src/town.h @@ -327,7 +327,7 @@ static inline Town *GetRandomTown() /* Make sure we have a valid town */ while (!Town::IsValidID(index)) { index++; - assert(index <= GetMaxTownIndex()); + assert(index < Town::GetPoolSize()); } } |