Skip to content

Commit 9b72651

Browse files
committed
update to beta.1, maybe fix macos issue
1 parent 2258944 commit 9b72651

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

mod.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"geode": "4.0.0-alpha.1",
3-
"version": "v1.6.5",
2+
"geode": "4.0.0-beta.1",
3+
"version": "v1.6.6",
44
"gd": {
55
"win": "2.2074",
66
"android": "2.2074",

src/Pack.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ Result<PackInfo> PackInfo::from(matjson::Value const& json) {
2424
root.needs("version").into(info.m_version);
2525

2626
// has single "author" key?
27-
if (auto& author = root.has("author").assertIsString()) {
28-
info.m_authors = { author.get<std::string>() };
27+
if (auto author = root.has("author")) {
28+
std::string temp;
29+
author.into(temp);
30+
info.m_authors = { temp };
2931
}
3032
// otherwise use "authors" key
3133
else {

0 commit comments

Comments
 (0)