Codechange: replace INVALID_X with XID::Invalid() for PoolIDs

This commit is contained in:
Rubidium
2025-02-16 19:29:53 +01:00
committed by rubidium42
parent d13b0e0813
commit fd4adc55e3
157 changed files with 744 additions and 772 deletions

View File

@@ -80,7 +80,7 @@ struct AIPLChunkHandler : ChunkHandler {
const std::vector<SaveLoad> slt = SlCompatTableHeader(_ai_company_desc, _ai_company_sl_compat);
/* Free all current data */
for (CompanyID c = COMPANY_FIRST; c < MAX_COMPANIES; ++c) {
for (CompanyID c = CompanyID::Begin(); c < MAX_COMPANIES; ++c) {
AIConfig::GetConfig(c, AIConfig::SSS_FORCE_GAME)->Change(std::nullopt);
}
@@ -160,7 +160,7 @@ struct AIPLChunkHandler : ChunkHandler {
{
SlTableHeader(_ai_company_desc);
for (CompanyID i = COMPANY_FIRST; i < MAX_COMPANIES; ++i) {
for (CompanyID i = CompanyID::Begin(); i < MAX_COMPANIES; ++i) {
SlSetArrayIndex(i);
SlAutolength(SaveReal_AIPL, i.base());
}