Codechange: Use std::string GetString where convenient

This commit is contained in:
rubidium42
2021-05-14 18:45:54 +02:00
committed by rubidium42
parent 2e0297b0fa
commit ae85af98eb
5 changed files with 18 additions and 45 deletions

View File

@@ -7759,9 +7759,7 @@ static void TranslateGRFStrings(ByteReader *buf)
* and disable this file. */
GRFError *error = DisableGrf(STR_NEWGRF_ERROR_LOAD_AFTER);
char tmp[256];
GetString(tmp, STR_NEWGRF_ERROR_AFTER_TRANSLATED_FILE, lastof(tmp));
error->data = tmp;
error->data = GetString(STR_NEWGRF_ERROR_AFTER_TRANSLATED_FILE);
return;
}