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
+1 -1
View File
@@ -562,7 +562,7 @@ struct PLYRChunkHandler : ChunkHandler {
}
}
if (cprops->name.empty() && !IsInsideMM(cprops->name_1, SPECSTR_COMPANY_NAME_START, SPECSTR_COMPANY_NAME_LAST + 1) &&
if (cprops->name.empty() && !IsInsideMM(cprops->name_1, SPECSTR_COMPANY_NAME_START, SPECSTR_COMPANY_NAME_END) &&
cprops->name_1 != STR_GAME_SAVELOAD_NOT_AVAILABLE && cprops->name_1 != STR_SV_UNNAMED &&
cprops->name_1 != SPECSTR_ANDCO_NAME && cprops->name_1 != SPECSTR_PRESIDENT_NAME &&
cprops->name_1 != SPECSTR_SILLY_NAME) {