1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-30 07:34:37 +01:00

Codechange: use SPECSTR_..._END over _LAST, to prevent + 1 everywhere

This commit is contained in:
Rubidium
2025-01-04 10:52:21 +01:00
committed by rubidium42
parent bfc8ae6c52
commit 65731bb964
6 changed files with 7 additions and 7 deletions

View File

@@ -405,7 +405,7 @@ static void GenerateCompanyName(Company *c)
StringID str;
uint32_t strp;
std::string name;
if (t->name.empty() && IsInsideMM(t->townnametype, SPECSTR_TOWNNAME_START, SPECSTR_TOWNNAME_LAST + 1)) {
if (t->name.empty() && IsInsideMM(t->townnametype, SPECSTR_TOWNNAME_START, SPECSTR_TOWNNAME_END)) {
str = t->townnametype - SPECSTR_TOWNNAME_START + SPECSTR_COMPANY_NAME_START;
strp = t->townnameparts;