Skip to content

Commit

Permalink
Fix loading of spectator lists in backups.
Browse files Browse the repository at this point in the history
  • Loading branch information
splewis committed Jun 25, 2016
1 parent 2bbebf6 commit bbc949f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripting/get5/matchconfig.sp
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ public void WriteMatchToKv(KeyValues kv) {
AddTeamBackupData(kv, MatchTeam_Team2);
kv.GoBack();

kv.JumpToKey("spec", true);
kv.JumpToKey("spectators", true);
AddTeamBackupData(kv, MatchTeam_TeamSpec);
kv.GoBack();

Expand Down Expand Up @@ -316,6 +316,7 @@ static bool LoadMatchFromKv(KeyValues kv) {
g_FavoredTeamPercentage = kv.GetNum("favored_percentage_team1", 0);
kv.GetString("favored_percentage_text", g_FavoredTeamText, sizeof(g_FavoredTeamText));

GetTeamAuths(MatchTeam_TeamSpec).Clear();
if (kv.JumpToKey("spectators")) {
AddSubsectionAuthsToList(kv, "players", GetTeamAuths(MatchTeam_TeamSpec), AUTH_LENGTH);
kv.GoBack();
Expand Down

0 comments on commit bbc949f

Please sign in to comment.