1
0
Fork 0

Fix: Manager name in company news was being clipped

pull/7632/head
Niels Martin Hansen 2019-04-23 21:39:41 +02:00 committed by Charles Pigott
parent db20c7f461
commit 5965f184c2
1 changed files with 5 additions and 0 deletions

View File

@ -331,6 +331,11 @@ struct NewsWindow : Window {
*size = maxdim(*size, GetSpriteSize(SPR_GRADIENT));
break;
case WID_N_MGR_NAME:
SetDParamStr(0, static_cast<const CompanyNewsInformation *>(this->ni->free_data)->president_name);
str = STR_JUST_RAW_STRING;
break;
case WID_N_MESSAGE:
CopyInDParam(0, this->ni->params, lengthof(this->ni->params));
str = this->ni->string_id;