From 2cc2154ad26b96b032df2f4fca0ce1634e6330b2 Mon Sep 17 00:00:00 2001 From: tron Date: Sat, 22 Oct 2005 06:39:32 +0000 Subject: (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 --- screenshot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'screenshot.c') 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); -- cgit v1.2.3-54-g00ecf