From 8797f695e00a395dc122ac34a7db10635c3ecc0e Mon Sep 17 00:00:00 2001 From: Riyyi Date: Sun, 10 Jul 2022 00:41:28 +0200 Subject: [PATCH] Util: Fix type check --- src/util/json/value.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/json/value.cpp b/src/util/json/value.cpp index 7c74ca3..9c64ace 100644 --- a/src/util/json/value.cpp +++ b/src/util/json/value.cpp @@ -106,7 +106,7 @@ void Value::emplace(const std::string& key, Value value) m_value.asObject = new Object; } - assert(m_type == Type::Array); + assert(m_type == Type::Object); m_value.asObject->emplace(key, value); }