Codechange: replace INVALID_X with XID::Invalid() for PoolIDs
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user