summaryrefslogtreecommitdiff
path: root/src/player_gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/player_gui.cpp')
-rw-r--r--src/player_gui.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/player_gui.cpp b/src/player_gui.cpp
index 9852f3b65..b753034b8 100644
--- a/src/player_gui.cpp
+++ b/src/player_gui.cpp
@@ -935,7 +935,8 @@ static void BuyCompanyWndProc(Window *w, WindowEvent *e)
switch (e->event) {
case WE_PAINT: {
Player *p = GetPlayer((PlayerID)w->window_number);
- SetDParam(0, p->index);
+ SetDParam(0, STR_COMPANY_NAME);
+ SetDParam(1, p->index);
DrawWindowWidgets(w);
DrawPlayerFace(p->face, p->player_color, 2, 16);