From a03930bc150ca4d103cd28b6d17430daad0bc1e0 Mon Sep 17 00:00:00 2001 From: Alasnkz <18373054+Alasnkz@users.noreply.github.com> Date: Fri, 30 Oct 2020 09:37:34 +0000 Subject: [PATCH] Pass the correct variable to TryGetJsonValue. --- src/Guild.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Guild.cpp b/src/Guild.cpp index 4e8df6c..5bdc4e7 100644 --- a/src/Guild.cpp +++ b/src/Guild.cpp @@ -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); } }