We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2258944 commit 9b72651Copy full SHA for 9b72651
mod.json
@@ -1,6 +1,6 @@
1
{
2
- "geode": "4.0.0-alpha.1",
3
- "version": "v1.6.5",
+ "geode": "4.0.0-beta.1",
+ "version": "v1.6.6",
4
"gd": {
5
"win": "2.2074",
6
"android": "2.2074",
src/Pack.cpp
@@ -24,8 +24,10 @@ Result<PackInfo> PackInfo::from(matjson::Value const& json) {
24
root.needs("version").into(info.m_version);
25
26
// has single "author" key?
27
- if (auto& author = root.has("author").assertIsString()) {
28
- info.m_authors = { author.get<std::string>() };
+ if (auto author = root.has("author")) {
+ std::string temp;
29
+ author.into(temp);
30
+ info.m_authors = { temp };
31
}
32
// otherwise use "authors" key
33
else {
0 commit comments