summaryrefslogtreecommitdiff
path: root/src/economy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/economy.cpp')
-rw-r--r--src/economy.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/economy.cpp b/src/economy.cpp
index 7f14bed8a..cb45d55b7 100644
--- a/src/economy.cpp
+++ b/src/economy.cpp
@@ -580,7 +580,7 @@ static void CompanyCheckBankrupt(Company *c)
/* Warn about bankruptcy after 3 months */
case 4: {
- CompanyNewsInformation *cni = MallocT<CompanyNewsInformation>(1);
+ CompanyNewsInformation *cni = new CompanyNewsInformation();
cni->FillData(c);
SetDParam(0, STR_NEWS_COMPANY_IN_TROUBLE_TITLE);
SetDParam(1, STR_NEWS_COMPANY_IN_TROUBLE_DESCRIPTION);
@@ -1975,7 +1975,7 @@ static void DoAcquireCompany(Company *c)
{
CompanyID ci = c->index;
- CompanyNewsInformation *cni = MallocT<CompanyNewsInformation>(1);
+ CompanyNewsInformation *cni = new CompanyNewsInformation();
cni->FillData(c, Company::Get(_current_company));
SetDParam(0, STR_NEWS_COMPANY_MERGER_TITLE);