1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-16 17:02: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

@@ -1890,7 +1890,7 @@ static void GetSpecialNameString(StringBuilder &builder, int ind, StringParamete
}
/* town name? */
if (IsInsideMM(ind - 6, 0, SPECSTR_TOWNNAME_LAST - SPECSTR_TOWNNAME_START + 1)) {
if (IsInsideMM(ind - 6, 0, SPECSTR_TOWNNAME_END - SPECSTR_TOWNNAME_START)) {
GetSpecialTownNameString(builder, ind - 6, args.GetNextParameter<uint32_t>());
builder += " Transport";
return;