summaryrefslogtreecommitdiff
path: root/src/ai/api/ai_company.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ai/api/ai_company.cpp')
-rw-r--r--src/ai/api/ai_company.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ai/api/ai_company.cpp b/src/ai/api/ai_company.cpp
index 4040ab9c1..439215a7e 100644
--- a/src/ai/api/ai_company.cpp
+++ b/src/ai/api/ai_company.cpp
@@ -43,13 +43,13 @@
return AIObject::DoCommand(0, 0, 0, CMD_RENAME_COMPANY, name);
}
-/* static */ const char *AICompany::GetCompanyName(AICompany::CompanyID company)
+/* static */ char *AICompany::GetCompanyName(AICompany::CompanyID company)
{
AILog::Error("AICompany::GetCompanyName is obsolete. Use AICompany::GetName instead.");
return AICompany::GetName(company);
}
-/* static */ const char *AICompany::GetName(AICompany::CompanyID company)
+/* static */ char *AICompany::GetName(AICompany::CompanyID company)
{
company = ResolveCompanyID(company);
if (company == COMPANY_INVALID) return NULL;
@@ -69,7 +69,7 @@
return AIObject::DoCommand(0, 0, 0, CMD_RENAME_PRESIDENT, name);
}
-/* static */ const char *AICompany::GetPresidentName(AICompany::CompanyID company)
+/* static */ char *AICompany::GetPresidentName(AICompany::CompanyID company)
{
company = ResolveCompanyID(company);