From 55c696533844eba0903f273ba669975e3bd35e3f Mon Sep 17 00:00:00 2001 From: Jan Behrens Date: Sun, 21 Apr 2013 11:52:40 +0200 Subject: [PATCH] fix db key for teamscore --- qcsrc/server/playerstats.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/server/playerstats.qc b/qcsrc/server/playerstats.qc index 45b00c076..8c29ae018 100644 --- a/qcsrc/server/playerstats.qc +++ b/qcsrc/server/playerstats.qc @@ -251,7 +251,7 @@ void PlayerStats_ready(entity fh, entity pass, float status) { tt = db_get(playerstats_db, sprintf("%s:_team", p)); url_fputs(fh, sprintf("t %s\n", tt)); - ts = db_get(playerstats_db, sprintf("team#%d:%s-score", PLAYERSTATS_SCOREBOARD, stof(tt))); + ts = db_get(playerstats_db, sprintf("team#%d:%s", stof(tt), strcat(PLAYERSTATS_SCOREBOARD, "score"))); if(ts != "") url_fputs(fh, sprintf("e %s %s\n", strcat(PLAYERSTATS_SCOREBOARD, "teamscore"), ts)); } -- 2.39.2