Codechange: convert C-style GetTownName API to std::string returning API
This commit is contained in:
@@ -207,9 +207,7 @@ void Town::InitializeLayout(TownLayout layout)
|
||||
|
||||
void Town::FillCachedName() const
|
||||
{
|
||||
char buf[MAX_LENGTH_TOWN_NAME_CHARS * MAX_CHAR_LENGTH];
|
||||
char *end = GetTownName(buf, this, lastof(buf));
|
||||
this->cached_name.assign(buf, end);
|
||||
this->cached_name.assign(GetTownName(this));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user