From cbbb37271bdfd5b51824f8b5a3ee5354236beff0 Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Wed, 18 May 2022 15:45:21 -0700 Subject: web: remove active leg ptr; various cleanup --- web/web_scoreboard.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'web/web_scoreboard.c') diff --git a/web/web_scoreboard.c b/web/web_scoreboard.c index 4ca823a..3b288c5 100644 --- a/web/web_scoreboard.c +++ b/web/web_scoreboard.c @@ -19,14 +19,14 @@ static struct { void scoreboard_set_player_active(int pn) { - char sel[64], *psel = sel; + char buf[64], *sel = buf; if (pn == -1) - psel = NULL; + sel = NULL; else sprintf(sel, "#p%d-info", pn); - dom_set_uniq_class(psel, "active", "[id$=-info]"); + dom_set_uniq_class(sel, "active", "[id$=-info]"); } void scoreboard_set_player_name(int pn, char *str) -- cgit v1.2.3-70-g09d2