From d52c8242f52098c09f73103efc7d8be51549e880 Mon Sep 17 00:00:00 2001 From: Amber Ehrlich Date: Fri, 6 Oct 2023 23:37:23 -0400 Subject: [PATCH] fix #928 yes --- src/dpp/discordevents.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dpp/discordevents.cpp b/src/dpp/discordevents.cpp index 43fefe6527..6b6f7e963d 100644 --- a/src/dpp/discordevents.cpp +++ b/src/dpp/discordevents.cpp @@ -105,7 +105,7 @@ void for_each_json(nlohmann::json* parent, std::string_view key, const std::func if (it == parent->end() || it->is_null()) { return; } - for (nlohmann::json &elem : *parent) { + for (nlohmann::json &elem : *it) { fn(&elem); } }