diff options
author | peter1138 <peter1138@openttd.org> | 2007-06-25 13:30:38 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2007-06-25 13:30:38 +0000 |
commit | 8ee9e8bf1e0b7c9fe9e9a41044e52f4e0e973634 (patch) | |
tree | 2aea1c963774b012ba0a63a2d9573f247003e6a9 /src/misc_gui.cpp | |
parent | 4e1e697bc638d89828910fe3bd042d5501f0fd77 (diff) | |
download | openttd-8ee9e8bf1e0b7c9fe9e9a41044e52f4e0e973634.tar.xz |
(svn r10323) -Codechange: reference company name, number and player (president) name
by index
Diffstat (limited to 'src/misc_gui.cpp')
-rw-r--r-- | src/misc_gui.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp index b84e008a1..93397c0e0 100644 --- a/src/misc_gui.cpp +++ b/src/misc_gui.cpp @@ -1416,9 +1416,8 @@ static void GenerateFileName() Let's use the name of player #0 for now. */ const Player *p = GetPlayer(IsValidPlayer(_local_player) ? _local_player : PLAYER_FIRST); - SetDParam(0, p->name_1); - SetDParam(1, p->name_2); - SetDParam(2, _date); + SetDParam(0, p->index); + SetDParam(1, _date); GetString(_edit_str_buf, STR_4004, lastof(_edit_str_buf)); SanitizeFilename(_edit_str_buf); } |