diff options
Diffstat (limited to 'src/screenshot.cpp')
-rw-r--r-- | src/screenshot.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/screenshot.cpp b/src/screenshot.cpp index 604d108dd..42dee3a8f 100644 --- a/src/screenshot.cpp +++ b/src/screenshot.cpp @@ -531,10 +531,8 @@ static char *MakeScreenshotName(const char *ext) if (_game_mode == GM_EDITOR || _game_mode == GM_MENU || _local_player == PLAYER_SPECTATOR) { ttd_strlcpy(_screenshot_name, "screenshot", lengthof(_screenshot_name)); } else { - 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(_screenshot_name, STR_4004, lastof(_screenshot_name)); } |