Skip to content

Commit

Permalink
Pass the correct variable to TryGetJsonValue.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alasnkz authored and maddinat0r committed Oct 31, 2020
1 parent bc706ff commit a03930b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Guild.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Guild::Guild(GuildId_t pawn_id, json const &data) :
continue;

Snowflake_t parent_id;
utils::TryGetJsonValue(data, parent_id, "parent_id");
utils::TryGetJsonValue(c, parent_id, "parent_id");
channel->UpdateParentChannel(parent_id);
}
}
Expand Down

0 comments on commit a03930b

Please sign in to comment.