Browse Source

Util: Fix type check

master
Riyyi 2 years ago
parent
commit
8797f695e0
  1. 2
      src/util/json/value.cpp

2
src/util/json/value.cpp

@ -106,7 +106,7 @@ void Value::emplace(const std::string& key, Value value)
m_value.asObject = new Object; m_value.asObject = new Object;
} }
assert(m_type == Type::Array); assert(m_type == Type::Object);
m_value.asObject->emplace(key, value); m_value.asObject->emplace(key, value);
} }

Loading…
Cancel
Save