diff options
author | tron <tron@openttd.org> | 2005-10-22 06:39:32 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-10-22 06:39:32 +0000 |
commit | 0b936c3222b3945f738885c6c7db3b46363ec6fe (patch) | |
tree | 646e010d91defd66326958b9e15c3eb36077760c /screenshot.c | |
parent | 4642ac94a903d1a358ac795240a6b800372b9020 (diff) | |
download | openttd-0b936c3222b3945f738885c6c7db3b46363ec6fe.tar.xz |
(svn r3077) static, const, bracing, indentation, 0 -> '\0'/NULL, typos in comments, excess empty lines, minor other changes
nothing spectacular, just some stuff, which piled up
Diffstat (limited to 'screenshot.c')
-rw-r--r-- | screenshot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/screenshot.c b/screenshot.c index ac9a4433f..4b6281821 100644 --- a/screenshot.c +++ b/screenshot.c @@ -486,7 +486,7 @@ static char *MakeScreenshotName(const char *ext) if (_game_mode == GM_EDITOR || _local_player == OWNER_SPECTATOR) { sprintf(_screenshot_name, "screenshot"); } else { - Player *p = &_players[_local_player]; + const Player* p = GetPlayer(_local_player); SetDParam(0, p->name_1); SetDParam(1, p->name_2); SetDParam(2, _date); |