diff options
-rw-r--r-- | src/unmovable_map.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/unmovable_map.h b/src/unmovable_map.h index 91782728b..0dd11e7dc 100644 --- a/src/unmovable_map.h +++ b/src/unmovable_map.h @@ -166,8 +166,7 @@ static inline void SetCompanyHQSection(TileIndex t, uint8 section) static inline void EnlargeCompanyHQ(TileIndex t, byte size) { assert(GetCompanyHQSection(t) == 0); - - size++; + assert(size <= 4); if (size <= GetCompanyHQSize(t)) return; SetCompanyHQSize(t , size); |