Codechange: make creating temporary StringParameters easier

This commit is contained in:
Rubidium
2023-06-13 23:46:08 +02:00
committed by rubidium42
parent 5bac27287e
commit 3e8f8c55c2
5 changed files with 76 additions and 93 deletions

View File

@@ -2431,8 +2431,7 @@ void Industry::RecomputeProductionMultipliers()
void Industry::FillCachedName() const
{
int64 args_array[] = { this->index };
StringParameters tmp_params(args_array);
auto tmp_params = MakeParameters(this->index);
this->cached_name = GetStringWithArgs(STR_INDUSTRY_NAME, tmp_params);
}