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/openttd.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/openttd.cpp')
-rw-r--r-- | src/openttd.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp index afbeaafe7..b3bd580c7 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -1012,11 +1012,8 @@ static void DoAutosave() #endif /* PSP */ if (_patches.keep_all_autosave && _local_player != PLAYER_SPECTATOR) { - const Player *p = GetPlayer(_local_player); - - SetDParam(0, p->name_1); - SetDParam(1, p->name_2); - SetDParam(2, _date); + SetDParam(0, _local_player); + SetDParam(1, _date); GetString(buf, STR_4004, lastof(buf)); ttd_strlcpy(buf, ".sav", sizeof(buf)); } else { |