Codechange: replace INVALID_X with XID::Invalid() for PoolIDs
This commit is contained in:
@@ -176,7 +176,7 @@ std::string ScriptConfig::SettingsToString() const
|
||||
|
||||
std::optional<std::string> ScriptConfig::GetTextfile(TextfileType type, CompanyID slot) const
|
||||
{
|
||||
if (slot == INVALID_COMPANY || this->GetInfo() == nullptr) return std::nullopt;
|
||||
if (slot == CompanyID::Invalid() || this->GetInfo() == nullptr) return std::nullopt;
|
||||
|
||||
return ::GetTextfile(type, (slot == OWNER_DEITY) ? GAME_DIR : AI_DIR, this->GetInfo()->GetMainScript());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user