Skip to content

Commit

Permalink
Skip meta keys in cvar parsing.
Browse files Browse the repository at this point in the history
  • Loading branch information
splewis committed Feb 15, 2019
1 parent 2b027d8 commit 30b5406
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripting/get5/matchconfig.sp
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,11 @@ static bool LoadMatchFromJson(JSON_Object json) {
StringMapSnapshot snap = cvars.Snapshot();
for (int i = 0; i < snap.Length; i++) {
snap.GetKey(i, cvarName, sizeof(cvarName));
// Skip json meta keys.
if (json_is_meta_key(cvarName)) {
continue;
}

cvars.GetString(cvarName, cvarValue, sizeof(cvarValue));
g_CvarNames.PushString(cvarName);
g_CvarValues.PushString(cvarValue);
Expand Down

0 comments on commit 30b5406

Please sign in to comment.